Forum
CS2D Scripts Lua Scripts/Questions/Help Kking has written
Something like a USGN member (specific) gets special commands,hp,speed,weps u know
Lol. Aren't we making the same scripts on and on? (:
Here you should be able to learn something about that Here..
Anders4000 has written
Lol. Aren't we making the same scripts on and on? (:
Here you should be able to learn something about that Here..
Kking has written
Something like a USGN member (specific) gets special commands,hp,speed,weps u know
Lol. Aren't we making the same scripts on and on? (:
Here you should be able to learn something about that Here..
Wheni opened ur link i got scared all those letters i mean OMG...if u just can find a admin script that can be edited iwould be realy thankfull...
Learn Lua.
redefinder has written
Just change commands.
For speedmod:
For health:
Flametail has written
same idea for a global speedmod or setmaxhealth?
Just change commands.
For speedmod:
1
parse("speedmod "..id.." 10)
1
parse("setmaxhealth "..id.." 250)
none of these work. at all. it complains that id is nil
same with this or any other related script:
edited 1×, last 13.02.10 07:28:36 am
Quote
addhook("attack","cod4.ammo")
function cod4.ammo(id,weapon)
if (wpn == 69) then
parse("spawnitem 61 "..player(id,"tilex").." "..player(id,"tiley").."")
end
end
function cod4.ammo(id,weapon)
if (wpn == 69) then
parse("spawnitem 61 "..player(id,"tilex").." "..player(id,"tiley").."")
end
end
edited 4×, last 13.02.10 11:29:06 am
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
addhook("attack","cod4.m") function cod4.m(id,weapon) if (wpn == 69) then parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley")) return 1 end end
Flametail has written
none of these work. at all. it complains that id is nil
same with this or any other related script:
same with this or any other related script:
I said change the command from my previous script.
Like this:
1
2
3
4
2
3
4
addhook("spawn","fastplayers") function fastplayers(id) [b]parse("speedmod "..id.." 10")[/b] end
Quote
addhook("attack","cod4.m")
function cod4.m(id,weapon)
if (wpn == 69) then
parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley"))
return 1
end
end
function cod4.m(id,weapon)
if (wpn == 69) then
parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley"))
return 1
end
end
to active this script i must hit someone .
It work when I click LPM with matchet its spawn primaryammo but when i hit someone or something agian the script stop working
this is error from console
Quote
[12:09:08] LUA ERROR: attempt to call a nil value
[12:09:08] Lua: Adding function 'cod4.ammo' to hook 'attack'
[12:09:08] Lua: Adding function 'cod4.ammo' to hook 'attack'
what is wrong ??
And there is no return.
1
2
3
4
5
6
2
3
4
5
6
addhook("attack","cod4.m") function cod4.m(id) 	if (player(id,"weapontype") == 69) then 		parse("spawnitem 64 "..player(id,"tilex").." "..player(id,"tiley")) 	end end
You help me create my mod .
I'm working on final version .
1
2
3
2
3
function MY_HUD parse("hudtxt '..id..' ©255220000Text: '..value..' text ' 256 416") end
what's wrong?? help
DRoNe has written
what's wrong?? help
1
2
3
2
3
function MY_HUD parse("hudtxt '..id..' ©255220000Text: '..value..' text ' 256 416") end
what's wrong?? help
function MY_HUD(id,value)
Now you must call your function:
MY_HUD(id,value)
In call of function change: player id instead of id and some number or string instead of value.
Vectar666 has written
function MY_HUD(id,value)
Now you must call your function:
MY_HUD(id,value)
In call of function change: player id instead of id and some number or string instead of value.
DRoNe has written
what's wrong?? help
1
2
3
2
3
function MY_HUD parse("hudtxt '..id..' ©255220000Text: '..value..' text ' 256 416") end
what's wrong?? help
function MY_HUD(id,value)
Now you must call your function:
MY_HUD(id,value)
In call of function change: player id instead of id and some number or string instead of value.
the command is wrong.
1
2
3
2
3
function MY_HUD(id,v) 	parse('hudtxt2 '..id..' "©255220000Text: '..v..' text' 256 416') end
1
parse([[hudtxt2 ]]..id..[[ "©255220000Text: ]]..v..[[ text" 256 416]])
1
2
3
2
3
function MY_HUD(id,v,slot) parse([[hudtxt2 ]]..id..[[ ]]..slot..[[ "©255220000Text: ]]..v..[[ text" 256 416]]) end