28.05.2011, 21:34
Й arrumou sу que quando saiu do server meu lv vai pra 0 :/
Antes que peзa
OnPlayerDisconnect
Antes que peзa
OnPlayerDisconnect
Код:
public OnPlayerDisconnect(playerid, reason) { logged[playerid] = 0; logado[playerid] = 0; #if Leavemessages == true DestroyObject(objectid); new PlayerName[30], string[256]; switch (reason) new pname[24]; GetPlayerName(playerid, pname, sizeof pname); { case 0: { if(SilentBanKick[playerid] == 0) { GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, 256, "%s(%i) saiu do server! (Crash/Conexгo)", PlayerName); SendClientMessageToAll(leavemessagecolor, string); } } case 1: { if(SilentBanKick[playerid] == 0) { GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, 256, "%s(%i) saiu do server! (Saindo...)", PlayerName); SendClientMessageToAll(leavemessagecolor, string); } } case 2: { if(SilentBanKick[playerid] == 0) { GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); format(string, 256, "%s(%i) fez merda e foi kickado/banido! (Kick/Ban)", PlayerName); SendClientMessageToAll(leavemessagecolor, string); } } } #endif }