Equip every 30 seconds
Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Equip TRS SCRIPT
7 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)
Equip every 30 seconds
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
equiptimer = 0 addhook("second","equiphe") function equiphe() 	if equiptimer == 30 then 		equiptimer = 0 		for _, id in ipairs(player(0, "team1living")) do 			parse("equip "..id.." 51") 		end 	else 		equiptimer = equiptimer + 1 	end end
Edited
![user](img/i_friend.png)
2× editiert, zuletzt 01.02.16 12:16:49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function Grenades() 	for _, id in ipairs(player(0, "team1living")) 		do 		parse("equip "..id.." 51"); 	end 	delay = false; end addhook("join", "_join") function _join(id) 	timer(30000, "Grenades"); 	delay = true; end addhook("ms100", "_ms100") function _ms100() 	if delay ~= true then 		timer(30000, "Grenades"); 		delay = true; 	end end
![user](img/i_friend.png)
@
![user](img/i_friend.png)
UPD: Screw that ^ it is a poor advice
1× editiert, zuletzt 01.02.16 21:49:08
![user](img/i_friend.png)
![user](img/i_friend.png)
Otherwise, my code seems unusable. Because I tried to modfy it, and I came with storing a variable for every player who joins.
And it works, but it just gives that specified player the grenade not all the terrorists which is not the right intended of this code.
Thus, better use @
![user](img/i_friend.png)
![user](img/i_friend.png)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)