public OnPlayerDisconnect(playerid, reason)
{
printf("> players: %d",GetPlayers());
SaveAccount(playerid);
new string[1024];
switch(reason)
{
case 0: format(string, sizeof(string), "O jogador {ffffff}%s {2CF52C}[{ffffff}ID:%d{2CF52C}] caiu/crashou do servidor.[{ffffff}%d/%d{2CF52C}]", GetPlayerNameEx(playerid),playerid,GetPlayers(),GetMaxPlayers());
case 1: format(string, sizeof(string), "O jogador {ffffff}%s {2CF52C}[{ffffff}ID:%d{2CF52C}] abandonou o servidor.[{ffffff}%d/%d{2CF52C}]", GetPlayerNameEx(playerid),playerid,GetPlayers(),GetMaxPlayers());
}
SendClientMessageToAll(COLOR_GREEN,string);
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;
}
public OnPlayerDisconnect(playerid, reason)
{
print("Foi chamada");
return 1;
}
new string[1024];
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;
}
PHP код:
PHP код:
|
#include <a_samp>
#include <DOF2>
#include <OPSP>
#include <pbAntiCheater>
#include <sscanf2>
#include <zcmd>
#include <streamer>
//#include <OPSP>
//#include <pbAntiCheater>