Something wrong with /kick
#3

Here


Код:
	
if(strcmp(cmdtext, "/kick", true, 5)==0)
{
  if(!IsPlayerAdmin(playerid)) return 0;
  if(!strlen(cmdtext[6]))
  {
    SendClientMessage(playerid, COLOR_ORED, "Usage: /kick [playerid] [reason]");
    return 1;
  }
  new ID = strval(cmdtext[6]);
  new pName[24], str[64];
  if(IsPlayerConnected(ID))
  {
    GetPlayerName(playerid, pName, 24);
    format(str, 64, "%s has been kicked from the server for: %s", pName,rest);
    SendClientMessageToAll(COLOR_ORED, str);
    print("Player kicked");
    Kick(ID);
  }
  return 1;
}
Reply


Messages In This Thread
Something wrong with /kick - by Jakku - 10.05.2009, 16:27
Re: Something wrong with /kick - by Weirdosport - 10.05.2009, 16:28
Re: Something wrong with /kick - by Jakku - 10.05.2009, 16:31
Re: Something wrong with /kick - by shitbird - 10.05.2009, 16:33
Re: Something wrong with /kick - by Jakku - 10.05.2009, 16:36
Re: Something wrong with /kick - by MenaceX^ - 10.05.2009, 16:38
Re: Something wrong with /kick - by shitbird - 10.05.2009, 16:39
Re: Something wrong with /kick - by MenaceX^ - 10.05.2009, 16:41
Re: Something wrong with /kick - by Jakku - 10.05.2009, 16:41
Re: Something wrong with /kick - by shitbird - 10.05.2009, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)