SA-MP Forums Archive
Can some1 make me Ban cmd? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Can some1 make me Ban cmd? (/showthread.php?tid=118706)



Can some1 make me Ban cmd? - Hullu - 04.01.2010

Can someone make me ban command pls?


Re: Can some1 make me Ban cmd? - Nakki - 04.01.2010

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!");
}



Re: Can some1 make me Ban cmd? - kaisersouse - 04.01.2010

search.