Forum
CS2D Scripts Auto give wrenchAuto give wrench
38 Antworten1
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')
2× editiert, zuletzt 22.07.16 09:34:39
Masea hat geschrieben
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 hat geschrieben
Ugly.
Right:
Masea hat geschrieben
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 hat geschrieben
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 hat geschrieben
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 hat geschrieben
How to make when player spawn he was given a wrench? (lua)
kerker hat geschrieben
given a wrench? (lua)
kerker hat geschrieben
(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
1× editiert, zuletzt 23.07.16 16:09:24
Yates hat geschrieben
He never said what he wants
Meaning he never said what game mode. So my code is still correct.
Masea hat geschrieben
@ 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 hat geschrieben
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
Zitat
I said "Lua" because I do not really understand, is how to do it."spawn" with lua..
Dudes, sorry of my bad English.
kerker hat geschrieben
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.