05.12.2014, 19:04
Well, OnPlayerUpdate() it's very faster, and it's spamming all chat. You can try yourself.
With this simple filescript, you will see how many updates are per second. More faster, I think it's 30 ms.
Anyway, you should use a timer wich checks every second how many warns it's having that player.
Edit: Again, I didn't saw the guy above me.
pawn Код:
new Updates;
public OnPlayerUpdate(playerid)
{
Updates++;
return 1;
}
CMD:updates(playerid, params[])
{
new string[50];
format(string, sizeof(string), "Here are curently %d updates!", Updates);
SendClientMessage(playerid, -1, string);
return 1;
}
Anyway, you should use a timer wich checks every second how many warns it's having that player.
Edit: Again, I didn't saw the guy above me.