Forum
CS2D General How To Make Spawn With That And That Weapon?How To Make Spawn With That And That Weapon?
3 replies 1
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook("spawn","items") function items(id) parse("equip "..id.." 11") parse("equip "..id.." 3") parse("equip "..id.." 51") parse("equip "..id.." 58") end
Go to samples folder and find something like fast players
there is spawn hook exaple just change speedmod to equip and Item Id.
http://unrealsoftware.de/forum_posts.php?post=120848&start=5900
return value = comma separated list of items which will be equipped on spawn
the following code is basically the same thing, but much shorter and more efficient:
1
2
3
4
2
3
4
addhook("spawn","items") function items() 	return "11,3,51,58" end
closed. use the lua scripting thread for further questions.
1