Forum

> > CS2D > Scripts > Lua Scripts/Questions/Help
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Lua Scripts/Questions/Help

6.770 Antworten
Seite
Zum Anfang Vorherige 1 2279 280 281338 339 Nächste Zum Anfang

alt Re: Lua Scripts/Questions/Help

Loooser
User Off Offline

Zitieren
try this:
1
2
3
4
5
6
addhook("walkover","walkover")
function walkover(id,iid,type)
         	if iid==47 then
          		return 1
         	end
end

alt Re: Lua Scripts/Questions/Help

maPmaKer
User Off Offline

Zitieren
loooser hat geschrieben
try this:
1
2
3
4
5
6
addhook("walkover","walkover")
function walkover(id,iid,type)
         	if iid==47 then
          		return 1
         	end
end


Is not working (I tryed it)

alt Re: Lua Scripts/Questions/Help

maPmaKer
User Off Offline

Zitieren
Flacko hat geschrieben
You have to use item(iid,"type")==47 to get the actual type id instead of the object id of the weapon


Thanks now it works. You're cool too

alt PLEASE HELP MEH!!

berk
User Off Offline

Zitieren
Could someone script a lua to deactivate the "Ennemy down" and the "Fire in the hole" Sound&Message?

PLEASE!

alt Re: Lua Scripts/Questions/Help

DC
Admin Off Offline

Zitieren
the fire in the hole message can be disabled (locally) in the options menu. you don't even need lua for that.

options > more > hud_fireinthehole > 0 - Off / False > Apply

for everything else: radio hook, return 1 in hooked function

alt Re: Lua Scripts/Questions/Help

berk
User Off Offline

Zitieren
And how i disable Teammate down ?

And how you mean radio hook return 1 in hooked function?

And if you say locally you mean i have to change it in the Server setting or in the Options of meh?

Couldn't you write that as a lua ?

alt Re: Lua Scripts/Questions/Help

hyh2
COMMUNITY BANNED Off Offline

Zitieren
ethand hat geschrieben
Can anybody supply me with a script that saves a user's money [ for RP ] and loads it on connection ? thanks a lot


Code your own.

alt Re: Lua Scripts/Questions/Help

RyceR
User Off Offline

Zitieren
Can anybody make for me script to save chat in "sys/lua/SERVER.txt" file like:
1
2
3
4
15/10/2010 day:
[8:29] RyceR says: Hi all!
[8:29] The G0D says: Hello.
[8:30] The G0D says: What is name of this mode?
or
1
2
3
[8:29] RyceR says: Hi all!
[8:29] The G0D says: Hello.
[8:30] The G0D says: What is name of this mode?

EDIT: Fixed
1× editiert, zuletzt 15.10.10 18:40:10

alt Re: Lua Scripts/Questions/Help

HaRe
User Off Offline

Zitieren
CoolioG hat geschrieben
Yes, is there anyway that I can disable the "rcon quit" function?


No, Unless you dont make an "Admin Script" Wich dosent use "quit" command

alt Re: Lua Scripts/Questions/Help

sixpack
User Off Offline

Zitieren
HaRe hat geschrieben
CoolioG hat geschrieben
Yes, is there anyway that I can disable the "rcon quit" function?


No, Unless you dont make an "Admin Script" Wich dosent use "quit" command


HaRe is right. You have to make an Admin Script else you are not able to do this...

If you want one, ask here...

alt Re: Lua Scripts/Questions/Help

Lee
Moderator Off Offline

Zitieren
CoolioG hat geschrieben
is there anyway that I can disable the "rcon quit" function?


Yes

1
2
3
4
addhook("parse", "remove_rcon_quit")
function remove_rcon_quit(text)
	if text == "quit" then return 2 end
end

Since rcon is only parsed on the clientside, the server still parses quit.

alt Re: Lua Scripts/Questions/Help

Fehu
User Off Offline

Zitieren
Why this dont work ?:

1
2
3
4
5
6
addhook("hit","god_on")
function god_on(id,source,weapon,hpdmg,apdmg)
    if god[id]==1 then
	return 1
    end
end

//Edit

Skipper, yes!
1× editiert, zuletzt 16.10.10 15:33:41

alt Re: Lua Scripts/Questions/Help

RAVENOUS
BANNED Off Offline

Zitieren
Fehuziom hat geschrieben
Why this dont work ?:

1
2
3
4
5
6
addhook("hit","god_on")
function god_on(id,source,weapon,hpdmg,apdmg)
    if god[id]==1 then
	return 1
    end
end


You implemented an array on god?
Zum Anfang Vorherige 1 2279 280 281338 339 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht