[Ajuda] Public OnPlayerDisconnect
#5

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new 
pName[24];
    new 
str[128];
    
GetPlayerName(playeridpName24);

    switch(
reason)
    {
        case 
0format(str128"%s saiu do servidor. (Problemas na conexгo)"pName);
        case 
1format(str128"%s saiu do servidor. (Resolveu sair)"pName);
    }
    
SendClientMessageToAll(0xAFAFAFAAstr);

    if(
isRelogging[playerid])
    {
        new 
string[30];
        
isRelogging[playerid] = false;
        
format(stringsizeof(string), "unbanip %s"relogPlayerIP[playerid]);
        
SendRconCommand(string);
    }
    return 
1;

Reply


Messages In This Thread
Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:19
Re: Public OnPlayerDisconnect - by Dolby - 29.03.2015, 01:24
Re: Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:27
Re: Public OnPlayerDisconnect - by ProKillerpa - 29.03.2015, 01:32
Re: Public OnPlayerDisconnect - by Dolby - 29.03.2015, 01:33
Re: Public OnPlayerDisconnect - by Mirathir - 29.03.2015, 01:37

Forum Jump:


Users browsing this thread: 2 Guest(s)