Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Wrench
12 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
1
2
3
4
5
6
2
3
4
5
6
function __spawn(id) 	if ( player(id, "team") == 2 ) then 		parse("equip "..id.." 74") 	end end addhook("spawn", "__spawn")
![cs2d cmd](img/i_codehelp.png)
![cs2d cmd](img/i_codehelp.png)
![cs2d lua hook](img/i_codehelp.png)
Use the return value instead!
![user](img/i_friend.png)
1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","testdrive") function testdrive(id) 	if player(id,"team") >= 2 then 		return "74" 	end end
![user](img/i_friend.png)
and it never gave me a wrench as a CT upon spawning. Did I mess up somewhere or is that a bug?
1
2
3
4
5
6
2
3
4
5
6
addhook("spawn","testdrive") function testdrive(id) 	if player(id,"team") >= 2 then 		return 74 	end end
![user](img/i_friend.png)
![](img/smiles/thoughtfully2.gif)
1
2
3
4
5
6
7
2
3
4
5
6
7
addhook('spawn',	'AA_spawn') function AA_spawn(id) 	if player(id, 'team') == 2 then 		return '74'; 	end end
![](img/smiles/veryfrightened.gif)
You would have to use a timer to strip stuff right after spawn.
1. Equips you with that weapon ID.
2. Removes it from the ground.
Possibilities. Possibilities everywhere.
![user](img/i_friend.png)
If you wanted more than one weapon on spawn, you'd have to use equip, right?
Wrong - you can specify a number of values separated by commas to equip several items at once.
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)