[Ajuda] Server Caindo
#8

Comando de Ban:
PHP код:
    CMD:ban(playeridparams[])
    {
            new 
result[64];
            if(
sscanf(params"us[64]"giveplayeridresult))
            {
                
SendClientMessage(playeridCOLOR_GRAD2"USE: /ban [id] [motivo]");
                return 
true;
            }
            if(
IsPlayerDono(giveplayerid))
            {
                
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo pode avisar um Admin Dono! Vocк foi Banido!");
                
Ban(playerid);
                return 
true;
            }
            new 
string[256];
            if (
PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(
IsPlayerConnected(giveplayerid))
                {
                    if(
giveplayerid != INVALID_PLAYER_ID)
                    {
                        if(
IsPlayerNPC(giveplayerid))return SendClientMessage(playeridCOLOR_YELLOW"SMS: Se vocк usar este comando em um de nossos robфs, vocк irб sofrer as consequкncias!, enviou: Gasparzinho (000)");
                        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
                        
GetPlayerName(playeridsendernamesizeof(sendername));
                        
format(stringsizeof(string), "[BAN]: %s foi banido por %s, Motivo: %s"giveplayersendername, (result));
                        
BPFLogs("ban"string);
                        
format(stringsizeof(string), "[BAN]: %s foi banido por %s, Motivo: %s"giveplayersendername, (result));
                        
SendClientMessageToAll(COLOR_LIGHTREDstring);
                        
PlayerInfo[giveplayerid][pBan] = 1;
                        
TextDrawShowForPlayer(giveplayeridTextBan);
                        
SBan(giveplayeridresultPlayerName(playerid));
                        
PlayerPlaySound(giveplayerid312020.00.00.0);
                        return 
true;
                    }
                }
//not connected
            
}
            else
            {
                
SendClientMessage(playeridCOLOR_GRAD1"    Vocк nгo pode usar este comando!");
            }
            return 
true;
    } 
Reply


Messages In This Thread
Server Caindo - by ViniBnT - 04.09.2018, 17:49
Re: Server Caindo - by ViniBnT - 04.09.2018, 20:19
Re: Server Caindo - by LeViNS - 04.09.2018, 20:50
Re: Server Caindo - by ViniBnT - 04.09.2018, 20:59
Re: Server Caindo - by LeViNS - 04.09.2018, 21:04
Re: Server Caindo - by ViniBnT - 04.09.2018, 21:14
Re: Server Caindo - by GSantana - 04.09.2018, 23:56
Re: Server Caindo - by ViniBnT - 05.09.2018, 02:11
Re: Server Caindo - by ViniBnT - 05.09.2018, 17:16
Re: Server Caindo - by connork - 05.09.2018, 21:18

Forum Jump:


Users browsing this thread: 1 Guest(s)