
Forum




Auto give wrench
38 replies
1
2
3
4
2
3
4
addhook("spawn","forlazyguy") function forlazyguy(i) 	parse("equip "..i.." 74") end

equipshould NEVER be used within

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


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


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.

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.
@


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



How to make when player spawn he was given a wrench? (lua)

given a wrench? (lua)

(lua)
He wants it from "spawn" with lua.. you ain't a master

deal with it




Go read the docs, m8

@

I did exactly what the OP wanted. Can't touch this
edited 1×, last 23.07.16 04:09:24 pm




He never said what he wants
Meaning he never said what game mode. So my code is still correct.


@
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.


addhook("spawn","forlazyguy")
function forlazyguy(i)
parse("equip "..i.." 74")
end
function forlazyguy(i)
parse("equip "..i.." 74")
end


Quote
I said "Lua" because I do not really understand, is how to do it."spawn" with lua..
Dudes, sorry of my bad English.



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.