A Problem with my script - 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)
+--- Thread: A Problem with my script (
/showthread.php?tid=447596)
A Problem with my script -
amitdahari - 30.06.2013
Well i have a RP Server and when i kick/ban/or anything that gets him out of game
It wont show him the reason like all the people can see the reason for his kick but he can only see that Server Lost connection
it like Skips a line..
Thanks for your help!
Re: A Problem with my script -
SilverKiller - 30.06.2013
Read this fully....
https://sampwiki.blast.hk/wiki/Kick
Re: A Problem with my script -
Nines - 30.06.2013
Код:
public KickPublic(playerid) { Kick(playerid); }
stock KickWithMessage(playerid, color, message[])
{
SendClientMessage(playerid, color, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid); //Delay of 1 second before kicking the player so he recieves the message
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kick", true) == 0)
{
KickWithMessage(playerid, COLOR, "You've been kicked.");
return 1;
}
return 0;
}
Re: A Problem with my script -
Red_Dragon. - 30.06.2013
Use Emmet_'s KickBan.inc include.