23.08.2009, 12:03
Hi,
How to spawn all player with a timer?
Thanks
How to spawn all player with a timer?
Thanks
forward RespawnAll();
public RespawnAll()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer(i);
}
}
|
Originally Posted by Ronyx69
Код:
forward RespawnAll();
public RespawnAll()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer(i);
}
}
Then use it just as a normalfunction. |
forward SpawnAll();
public SpawnAll()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SpawnPlayer(i);
}
}
}
|
Originally Posted by SpiderPork
In my opinion, you should check if the player, which you will be spawning, is online, like this:
pawn Код:
|