OnPlayerUpdate Ping Problem
#1

The code works fine but it won't tell the player before he gets kicked.
Код:
         new string[256];
	 format(string, sizeof(string), "SERVER: %s has been kick for Excessive Ping!", GetName(playerid));
         if(GetPlayerPing(playerid) > 50)
         {
	 Kick(playerid);
	 SendClientMessageToAll(COLOR_SERVER, string);
	 }
Reply
#2

https://sampwiki.blast.hk/wiki/Kick

Quote:

As of SA-MP 0.3x, any action taken directly before Kick() (such as sending a message with SendClientMessage) will not reach the player. A timer must be used to delay the kick.

Also, if the thing above was not enough, you're kicking him first before sending the message.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)