23.01.2011, 13:43
You can either do this
or
Or don't care. Variables are automatically set to zero when player joins / game mode starts.
OnGameModeInit is called ONLY when you start the gamemode not when you connect.
pawn Код:
for (new i = 0; i < MAX_PLAYERS; i ++)
{
Dead[i] = 0;
}
pawn Код:
// under onplayerconnect
Dead[playerid] = 0;
OnGameModeInit is called ONLY when you start the gamemode not when you connect.