Posts: 45
Threads: 4
Joined: Jun 2016
Quote:
Originally Posted by Arbico
Try this
PHP код:
#include <a_samp>
#define FILTERSCRIPT
#define MAX_PING 15
public OnPlayerUpdate(playerid) {
if(GetPlayerPing(playerid) > MAX_PING)
{
TogglePlayerControllable(playerid, 0); //true/freeze
SendClientMessage(playerid, -1, "true");
}
else if(GetPlayerPing(playerid) < MAX_PING)
{
TogglePlayerControllable(playerid, 1); //false/unfreeze
SendClientMessage(playerid, -1, "false");
}
}
|
still spams. what exactly did you change?