[Ajuda] Comando /kick
#2

PHP код:
CMD:kick(playeridparams[])
{
 if (
IsPlayerAdmin(playerid) || Player[playerid][Padmin] >= 1)
 {
  new 
idrasaoStr[128], kikador[MAX_PLAYER_NAME];
  if(
sscanf(params"us"idrasao))
  {
    
SendClientMessage(playeridlaranja"Digite : /kick [ID] [Motivo]");
    return 
1;
   }
   else
   {
    if(!
IsPlayerConnected(id)) return SendClientMessage(playeridvermelho"Este jogador nгo estб conectado !");
    
GetPlayerName(playeridkikadorsizeof(kikador));
    
format(Strsizeof(Str), "O jogador %s(%d) foi kikado do servidor. Motivo : %s"kikador,playerid,rasao);
    
Kick(id);
    
SendClientMessageToAll(vermelhoStr);
   }
   }
    else
   {
     
SendClientMessage(playerid,vermelho"Vocк nгo й um administrador !");
   }
  return 
true;

Reply


Messages In This Thread
Comando /kick - by ZackT - 16.09.2015, 00:56
Re: Comando /kick - by Asus994 - 16.09.2015, 01:05
Re: Comando /kick - by MacMillan_ - 16.09.2015, 01:09
Re: Comando /kick - by ZackT - 16.09.2015, 01:12
Re: Comando /kick - by Asus994 - 16.09.2015, 01:14
Re: Comando /kick - by MacMillan_ - 16.09.2015, 01:15
Re: Comando /kick - by ZackT - 16.09.2015, 01:20
Re: Comando /kick - by [BOPE]Seu._.Madruga - 17.09.2015, 00:03
Re: Comando /kick - by Eddye - 17.09.2015, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)