26.06.2014, 07:49
Quote:
|
Create a loop, check if player is connected (or use foreach) and set his health to 100.
|
@ aCloudy
here is more about loops ; https://sampwiki.blast.hk/wiki/Loop
if you have a loop like this;
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
SetPlayerHealth( i , 100);
SetPlayerHealth has usually playerid..the playerid has been replaced with an 'i' as you can see. The loop makes it possible that ' i ' area playerids threw all players.
you can loop threw alot more ..for example;
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)


