30.11.2013, 15:40
PHP код:
new string[1024];
PHP код:
public OnPlayerDisconnect(playerid, reason)
{
printf("> players: %d",GetPlayers());
SaveAccount(playerid);
new Motivo[20];
if(reason == 0) Motivo = "Queda de conexгo";
if(reason == 1) Motivo = "Conta prуpria";
if(reason == 2) Motivo = "Kickado/Banido";
new saiufdps[128];
format(saiufdps, sizeof(saiufdps), "%s [ID: %d] saiu do servidor. (%s) [{ffffff}%d/%d{2CF52C}]", GetPlayerNameEx(playerid), playerid, Motivo, GetPlayers(),GetMaxPlayers());
SendClientMessageToAll(COLOR_GREEN,saiufdps);
if(TeamAlien[playerid] == 1) TeamAlien[playerid] = 0, Aliens--;
if(TeamHuman[playerid] == 1) TeamHuman[playerid] = 0, Humans--;
PlayerInfo[playerid][Kills] = 0;
PlayerInfo[playerid][Deaths] = 0;
PlayerInfo[playerid][Vip] = 0;
PlayerInfo[playerid][Admin] = 0;
PlayerInfo[playerid][Prenda] = 0;
return 1;
}