Need announce : Banned + server closed connection - 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: Need announce : Banned + server closed connection (
/showthread.php?tid=514497)
Need announce : Banned + server closed connection -
jesdynguyen - 21.05.2014
My server is Roleplay , sometime my member got banned from account or IP just has seen : Server closed connection , they cant understand and dont know why what happen . I want announce in my FS or GM for make a table or red announce banned like :
you are banned from this server , make a form in forum : wwww...
Your ip has been banned from this server
So On to show them know what happen
sorry my bad english , hope you understand and answer help me !
Re: Need announce : Banned + server closed connection -
SickAttack - 21.05.2014
You must create a timer so that the player can see the message. Refer to the code below.
pawn Код:
// This goes were the message is being sent.
SendClientMessage(playerid, ...); // Your message goes here.
SetTimerEx("KickPlayer", 1000, false, "i", playerid);
// Put this on the bottom of your gamemode.
forward KickPlayer(playerid);
public KickPlayer(playerid)
{
Kick(playerid);
}
Re: Need announce : Banned + server closed connection -
iZN - 21.05.2014
Since 0.3d+ you have to set some timer before kicking or banning some player in order to give them your client messages.
https://sampwiki.blast.hk/wiki/Kick
http://forum.sa-mp.com/showpost.php?...3&postcount=65
Re: Need announce : Banned + server closed connection -
eXeDeveloper - 21.05.2014
Try using
SetTimer
Re: Need announce : Banned + server closed connection -
SickAttack - 21.05.2014
Quote:
Originally Posted by eXeDeveloper
|
You must use
SetTimerEx. If you use SetTimer then ID 0 (Or the minimun id) will get kicked from the server.