kicking player - 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: kicking player (
/showthread.php?tid=456181)
kicking player -
CH | FuDo - 04.08.2013
Hi guys, I have a problem with this:
I want to first show Conected to SAMP, then to send him this message, and then to kick him.
How to make it? Any suggestions?
Thanks!
Re: kicking player -
doreto - 04.08.2013
When connect create
Timer for 3-4 seconds;when timer load send message and kick him
Re: kicking player -
Private200 - 04.08.2013
https://sampwiki.blast.hk/wiki/Kick
There have been a update frequently on the SA:MP 0.3x and the kicking time is faster then letting the player get message first. You'd better use a timer to get the player kicked. Watch the tutorial on the link that I gave and, good luck.
EDIT: For the comment up of me, are you just mad; 3-4 seconds for kicking; The player has hacked all the server in that small amount of time. 1sec is more then enough. Good would be 500MS.
Re: kicking player -
CH | FuDo - 04.08.2013
I maded timer, but what to use as a back to OnPlayerConnect public?
Re: kicking player -
Private200 - 04.08.2013
Quote:
Originally Posted by CH | FuDo
I maded timer, but what to use as a back to OnPlayerConnect public?
|
What do you mean; What to do OnPlayerConnect; If you mean that player is banned and want to kick him than you must create a saving system.
Re: kicking player -
CH | FuDo - 04.08.2013
I created reg/login system, now I want to create something like CheckRPName. You got it now?
Re: kicking player -
Face9000 - 04.08.2013
Quote:
Originally Posted by Private200
What do you mean; What to do OnPlayerConnect; If you mean that player is banned and want to kick him than you must create a saving system.
|
He's just asking for a timer to make see the "kick message" at the player:
At the top:
pawn Code:
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
Kick(playerid);
return 1;
}
Put where you placed the kick message:
pawn Code:
SetTimerEx("KickPlayer",200,false,"d",playerid);
Place it AFTER the kick message.