SA-MP Forums Archive
SendClientMessage before Kick - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: SendClientMessage before Kick (/showthread.php?tid=606811)



SendClientMessage before Kick - Seprum - 09.05.2016

When I want to inform player about reason of kick I have to set some timeout for kick because when I call kick right after SendClientMessage it isn't displayed before kick. Player just receives message "Server closed connection".


Re: SendClientMessage before Kick - yugecin - 09.05.2016

Not a bug. This is since 0.3x, probably because alot of the networking system changed. You have to use a timer. View the note and example at https://sampwiki.blast.hk/wiki/Kick