Forum
CS2D Scripts Auto give wrenchAuto give wrench
38 replies1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..i.." 74") end
equipshould NEVER be used within spawn hook as this hook gives the item specific to the player upon spawn with
return. It's documented regarding the matter, really.
1
2
3
4
5
2
3
4
5
function WrenchItemSpawn() return '74' end addhook('spawn', 'WrenchItemSpawn')
edited 2×, last 22.07.16 09:34:39 am
Masea has written
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..i.." 74") end
Ugly.
Right:
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..id.." 74") end
kerker has written
Ugly.
Right:
Masea has written
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..i.." 74") end
Ugly.
Right:
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..id.." 74") end
Ugly,
right
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy() 	return 74 end
1
parse("sv_gamemode 3")
equip.
Yates has written
Guys, please. I can shorten all your code:
1
parse("sv_gamemode 3")
When he wants to 1 round 1 spawn? I mean standard game mode.
@ kerker: yeah your code is 100% right, joke lol
Baloon has written
When he wants to 1 round 1 spawn? I mean standard game mode.
He never said what he wants - so my code is 100% correct so I am the MÆSTØR.
Deal with it
kerker has written
How to make when player spawn he was given a wrench? (lua)
kerker has written
given a wrench? (lua)
kerker has written
(lua)
He wants it from "spawn" with lua.. you ain't a master
deal with it
Go read the docs, m8
@ Baloon: Did you not see my code? That was obviously Lua.
I did exactly what the OP wanted. Can't touch this
edited 1×, last 23.07.16 04:09:24 pm
Yates has written
He never said what he wants
Meaning he never said what game mode. So my code is still correct.
Masea has written
@ kerker: Learn some lua. When you will back with some knowledge about lua, I will be here.
And?You need to learn Lua.Your script is not work.
Masea has written
addhook("spawn","forlazyguy")
function forlazyguy(i)
parse("equip "..i.." 74")
end
function forlazyguy(i)
parse("equip "..i.." 74")
end
Yates Yeah, it works. But need to the players are not reborn again.
Mora
Quote
I said "Lua" because I do not really understand, is how to do it."spawn" with lua..
Dudes, sorry of my bad English.
kerker has written
How to make when player spawn he was given a wrench? (lua)
That's all he asked. So stop your bullshit - you have your threads for that.