Quote:
Originally Posted by Cowboy
pawn Code:
public OnGameModeExit() { for(new i; i != MAX_PLAYERS; i++) OnPlayerDisconnect(i, 1); db_close(Database); return 1; }
|
Why would there be anything like that at all is what I'm wondering. OnPlayerDisconnect is called for every player upon a controlled server restart anyways.
Quote:
Originally Posted by Cowboy
I gotta another question.
Example:
PlayerInfo[playerid][pAdminLevel] = 0;
Where is it best to put this? OnPlayerConnect or OnPlayerDisconnect? Or maybe both?
|
Both would be a waste. Resetting it under OnPlayerDisconnect is a good idea.