[Ajuda] OnPlayerDisconnect nao й chamado
#4

PHP код:
new string[1024]; 
Nгo precisa disto..

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

Reply


Messages In This Thread
OnPlayerDisconnect nao й chamado - by iTzDemon - 30.11.2013, 15:33
Re: OnPlayerDisconnect nao й chamado - by Juniiro3 - 30.11.2013, 15:37
Re: OnPlayerDisconnect nao й chamado - by iTzDemon - 30.11.2013, 15:37
Re: OnPlayerDisconnect nao й chamado - by GReeN_WOoD - 30.11.2013, 15:40
Re: OnPlayerDisconnect nao й chamado - by iTzDemon - 30.11.2013, 15:42
Re: OnPlayerDisconnect nao й chamado - by GReeN_WOoD - 30.11.2013, 15:47
Re: OnPlayerDisconnect nao й chamado - by iTzDemon - 30.11.2013, 15:49
Re: OnPlayerDisconnect nao й chamado - by GReeN_WOoD - 30.11.2013, 15:52
Re: OnPlayerDisconnect nao й chamado - by iTzDemon - 30.11.2013, 16:22
Re: OnPlayerDisconnect nao й chamado - by GReeN_WOoD - 30.11.2013, 16:28

Forum Jump:


Users browsing this thread: 2 Guest(s)