16.10.2012, 11:26
Nice, but this can also be used in OnPlayerSpawn itself by creating variables.
For example,
Nice work though.
For example,
pawn Код:
new spawned[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
spawned[playerid]++; //Counts the spawned rates +1.
SendFormattedMessage(playerid, -1, "Spawned times:%d", spawned[playerid]);
//Other stuffs.
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
spawned[playerid] = 0;
//Other stuffs.
return 1;
}