12.04.2013, 19:00
pawn Код:
new FPSlimite = strval(params);
strval is for transforming strings into integrer
you may use
new FPSlimite;
also a new problem playerid is the player who have that fps, so the command won't kick player who have low fps , will kick the player who type the command if he have low ping
you should loop
like
pawn Код:
///also this should be in the callback timer not into the command.
for(new i = 0; i < MAX_PLAYERS;i++)
{
if(GetPlayerFPS(i) < FPSlimite)
{
SetTimerEx("FPSKicker",5000, 1, "u", i); //customize this to your time ...., 1 is for reapeting this one
}
return 1;
}