[HELP] SendClientMessage Before Kick
#1

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;
}

Reply
#2

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);
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)