#1

I searched but no help, how to put reason in /kick command.
if I use /kick I have

Quote:

Server: Admin myname (id) has kicked playername

Please help?
Reply
#2

Try getting a admin download like xAdmin or Seifadmin or w/e and just look and see if they have a kick w/ reason and just put into your gm.
Reply
#3

ok
Reply
#4

pawn Код:
if(!strcmp(cmdtext, "/kick", true, 5))
{
  if(!strlen(cmdtext[6]))
  {
    SendClientMessage(playerid, COLOR_ORED, "Usage: /kick [playerid] [reason]");
    return 1;
  }
  new ID = strval(cmdtext[6]);
  new pName[24], stri[64], strv[64],rest[256];
  if(IsPlayerConnected(ID))
  {
    GetPlayerName(ID, pName, 24);
    format(strv, 64, "~ You have been kicked from the server for ^%s^", rest);
    SendClientMessage(ID,COLOR_ORANGE, strv);
    Kick(ID);
    format(stri, 64, "%s has been kicked from the server", pName);
    SendClientMessageToAll(COLOR_ORED, stri);
    print(stri);
  }
  return 1;

    }
Reply
#5

You don't need 256 cells for the reason.
Reply
#6

Script Request Thread.
Reply
#7

Quote:
Originally Posted by Don Correlli
You don't need 256 cells for the reason.
I know, I just took that from somewhere, the options is called as SEARCH :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)