Ban command help please.
#9

Just login RCON and use it

Код:
if(!strcmp(cmdtext, "/ban", true, 5))
{
  if (IsPlayerAdmin(playerid))
  {
    if(!strlen(cmdtext[6]))
    {
      SendClientMessage(playerid, COLOR_ORED, "Usage: /ban [playerid]");
      return 1;
    }
    new ID = strval(cmdtext[6]);
    new strv[170];
    if(IsPlayerConnected(ID))
    {
      format(strv, 170, "~ You have been banned from this server");
      SendClientMessage(ID,COLOR_ORANGE, strv);
      Ban( ID );
    }
  }
  return SendClientMessage(playerid, COLOR_RED, "Your not rcon admin!");
}
OMG .. im stypid xD that normal ban command
Reply


Messages In This Thread
Ban command help please. - by introzen - 06.01.2010, 22:58
Re: Ban command help please. - by pagie1111 - 07.01.2010, 02:47
Re: Ban command help please. - by introzen - 07.01.2010, 02:59
Re: Ban command help please. - by pagie1111 - 07.01.2010, 03:03
Re: Ban command help please. - by introzen - 07.01.2010, 03:55
Re: Ban command help please. - by bogeymanEST - 07.01.2010, 05:43
Re: Ban command help please. - by pagie1111 - 07.01.2010, 11:06
Re: Ban command help please. - by introzen - 07.01.2010, 15:08
Re: Ban command help please. - by Nakki - 07.01.2010, 15:14
Re: Ban command help please. - by introzen - 07.01.2010, 15:32

Forum Jump:


Users browsing this thread: 1 Guest(s)