SA-MP Forums Archive
[HELP] SendClientMessage Before Kick - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] SendClientMessage Before Kick (/showthread.php?tid=77588)



[HELP] SendClientMessage Before Kick - PoWerZ - 12.05.2009

I have a big problem,
When Player connects to the server(OnPlayerConnect)
the server checks if his nick includes "[AFK]" Tag,
if yes it sends him message and kicks him but,
I don't know why it just kicks the player without sending a message

Quote:

if(strfind(PlayerName,"[AFK]", true) != -1)// AFK Tag Check
{
SendClientMessage(playerid,COLOR_SERVER," Your nickname includes [AFK] Tag");
Kick(playerid);
return 1;
}




Re: [HELP] SendClientMessage Before Kick - Weirdosport - 12.05.2009

You get this problem with other kick scripts, I guess you might say the kick is too quick for the sendclient message.. Try is using SetTimerEx..

pawn Код:
SetTimerEx("kick", 1000, 0, "d", playerid);



Re: [HELP] SendClientMessage Before Kick - PoWerZ - 12.05.2009

Quote:
Originally Posted by Weirdosport
You get this problem with other kick scripts, I guess you might say the kick is too quick for the sendclient message.. Try is using SetTimerEx..

pawn Код:
SetTimerEx("kick", 1000, 0, "d", playerid);
Yes,but in other gamemodes or server in other kick scripts it works fine
also,sometimes it shows and sometimes half and sometimes no.