dcmd_kick help - reason not showing
#1

Код:
dcmd_kick(playerid,params[])
{
  if(IsPlayerAdmin(playerid))
  {
  new tmp[256], idx;
  new reason[128];
  tmp = strtok(params,idx);
  if(!strlen(tmp))
  {
   SendClientMessage(playerid,COLOR_GREY,"|| Usage: /kick (playerid) (reason) ||");
   SendClientMessage(playerid,COLOR_GREY,"|| Function: Kicks the player from the server ||");
   return true;
  }
  new pid = strval(tmp);
  if(!IsPlayerConnected(pid))
  {
   SendClientMessage(playerid,COLOR_GREY,"Incorrect ID.");
   return true;
  }
  tmp = strrest(params,idx);
  new pname[MAX_PLAYER_NAME], pname2[MAX_PLAYER_NAME], string[256];
  GetPlayerName(pid, pname, sizeof(pname));
  GetPlayerName(playerid, pname2, sizeof(pname2));
  tmp = strrest(params, idx);
  format(string, sizeof(string), "|| Administrator %s kicked %s. Reason: % ||", pname2, pname, reason, tmp);
  SendClientMessageToAll(COLOR_RED, string);
  Kick(pid);
  return true;
  }
  else return SendClientMessage(playerid, COLOR_RED, "You are not logged into RCON.");
}
Whats wrong here? The reason is not showing up.
Reply


Messages In This Thread
dcmd_kick help - reason not showing - by Striker_Moe - 12.09.2009, 08:12
Re: dcmd_kick help - reason not showing - by [nl]daplayer - 12.09.2009, 08:34
Re: dcmd_kick help - reason not showing - by Striker_Moe - 12.09.2009, 08:36
Re: dcmd_kick help - reason not showing - by CJ101 - 12.09.2009, 09:10
Re: dcmd_kick help - reason not showing - by Striker_Moe - 12.09.2009, 09:44
Re: dcmd_kick help - reason not showing - by Karlip - 12.09.2009, 09:48
Re: dcmd_kick help - reason not showing - by Striker_Moe - 12.09.2009, 10:04
Re: dcmd_kick help - reason not showing - by CJ101 - 12.09.2009, 10:18
Re: dcmd_kick help - reason not showing - by Striker_Moe - 12.09.2009, 11:03
Re: dcmd_kick help - reason not showing - by MadeMan - 12.09.2009, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)