SA-MP Forums Archive
Respawning. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Respawning. (/showthread.php?tid=258201)



Respawning. - iGetty - 29.05.2011

Okay, so I have created a search and destroy, all I need now is a thing that will respawn ALL players, when the
/defusebomb command has been used., and would you please tell me where to put the things in the script?


Re: Respawning. - sleepysnowflake - 29.05.2011

Make a loop through all players and respawn them.


Re: Respawning. - iGetty - 29.05.2011

But the thing I am asking, is HOW, I don't understand, or I could have done it.


Re: Respawning. - sleepysnowflake - 29.05.2011

pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    SpawnPlayer(i);
}
Put it on the command.


Re: Respawning. - iGetty - 29.05.2011

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
    SpawnPlayer(i);
}
Put it on the command.
Thank you!