/kick - 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: /kick (
/showthread.php?tid=102741)
/kick -
Ironboy500 - 17.10.2009
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?
Re: /kick -
Jake Canfield - 17.10.2009
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.
Re: /kick -
Ironboy500 - 17.10.2009
ok
Re: /kick -
Jakku - 17.10.2009
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;
}
Re: /kick -
Correlli - 17.10.2009
You don't need 256 cells for the reason.
Re: /kick -
MenaceX^ - 17.10.2009
Script Request Thread.
Re: /kick -
Jakku - 17.10.2009
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