Why does it kick myself?
#3

Try this:
PHP код:
CMD:kick(playeridparams[]) 

   new 
targetplayer
   if(
IsPlayerAdmin(playerid)) 
   { 
    if(
sscanf(params"u"targetplayer)) 
    return 
SendClientMessage(playeridCOLOR_ORANGE"USAGE: /kick [ID] [REASON]"); 
    if(!
IsPlayerConnected(targetplayer)) return SendClientMessage(playeridCOLOR_RED"Player is not connected!"); 
    if(
targetplayer == playerid) return SendClientMessage(playeridCOLOR_RED"You cannot kick yourself!"); 
     
    new 
string[64]; 
    
format(stringsizeof string"%s has been kicked by an admin!"Kick(targetplayer)); 
    
SendClientMessageToAll(COLOR_LIGHTBLUEstring); 
   } 
    else 
   { 
    
SendClientMessage(playerid, -1"SERVER: Unknown command."); 
   } 
   return 
1

Reply


Messages In This Thread
Why does it kick myself? - by saffierr - 31.03.2015, 10:04
Re: Why does it kick myself? - by CalvinC - 31.03.2015, 10:12
Re: Why does it kick myself? - by ATGOggy - 31.03.2015, 10:33
Re: Why does it kick myself? - by NoDi522 - 31.03.2015, 11:23
Re: Why does it kick myself? - by saffierr - 31.03.2015, 16:32

Forum Jump:


Users browsing this thread: 3 Guest(s)