SA-MP Forums Archive
Message problem. - 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: Message problem. (/showthread.php?tid=511735)



Message problem. - Laure - 07.05.2014

I've got a message return problem in my script it should return a message on pressing esc on the login menu and kick the player but it just kicks but doesnt show the message.
pawn Код:
{
            SendClientMessage(playerid, COLOR_WHITE, "Unitech Gaming: You choosed to quit the server.");
            Kick(playerid);
                return 1;
 }
PS: When i keep return 1; above kick it sends the message but gives a warning while compiling.


Re: Message problem. - Nathan_Taylor - 07.05.2014

What warning does it give?


Re: Message problem. - Roel - 07.05.2014

Yes, you will have to set a timer on the kick for like 500 ms.
Because the player gets disconnected before the message gets to him, see it like a bug.


Re: Message problem. - Laure - 07.05.2014

I totally got you Roel, thanks.