[Ajuda] Kickar admin RCON
#3

tenta...

PHP код:
CMD:kick(playeridparams[])
{
    
LoginCheck(playerid);
    
LevelCheck(playerid1);
    new
        
string[128],
        
id,
        
reason[128]
    ;
    if(
sscanf(params"uS(N/A)[128]"idreason)) return SendClientMessage(playeridCOLOR_RED"<!> Syntax Error: /kick [playerid] [reason(Default: N/A)]");
    
    if(
id == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_RED"Syntax Error: Player not connected.");
    
    if(
User[playerid][accountAdmin] < User[id][accountAdmin]) return SendClientMessage(playeridCOLOR_RED"Syntax Error: You cannot use this command on higher admin.");
    
    if(
IsPlayerAdmin(id)) return SendClientMessage(playeridCOLOR_RED"Syntax Error: Nгo pode kickar um Admin RCON seu noob!");
    
    
format(stringsizeof(string), "** %s has been kicked by Adminstrator %s [Reason: %s]"pName(id), pName(playerid), reason);
    
SendClientMessageToAll(COLOR_GREYstring);
    
#if LOG == true
        
SaveLog("kicklog.txt"string);
    
#endif
    
KickDelay(id);
    return 
1;

Reply


Messages In This Thread
Kickar admin RCON - by F1N4L - 17.01.2016, 12:49
Re: Kickar admin RCON - by BykiLler - 17.01.2016, 12:50
Re: Kickar admin RCON - by Coringa_Vilao - 17.01.2016, 12:58
Re: Kickar admin RCON - by F1N4L - 17.01.2016, 13:00
Re: Kickar admin RCON - by Coringa_Vilao - 17.01.2016, 13:03
Re: Kickar admin RCON - by Ever_SH - 17.01.2016, 13:05
Re: Kickar admin RCON - by F1N4L - 17.01.2016, 13:05
Re: Kickar admin RCON - by F1N4L - 17.01.2016, 13:07
Re: Kickar admin RCON - by Coringa_Vilao - 17.01.2016, 13:08

Forum Jump:


Users browsing this thread: 2 Guest(s)