new p_LastHealMe[MAX_PLAYERS]; // to save time in it
CMD:healme(playerid, params[])
{
if(( gettime() - p_LastHealMe[playerid] ) < 10)
{
// error message
}
else
{
// stuff
p_LastHealMe[playerid] = gettime();
}
}
PHP код:
PHP код:
|
for(new i = 0, j = GetPlayerMaxPoolSize(); i <= j; i++) |
[13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:05] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5745) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec [13:50:06] [warning] client exceeded 'ackslimit' 127.0.0.1:63495 (5985) Limit: 5000/sec |
PHP код:
PHP код:
|
CMD:healme(playerid, params[]) {
if(gettime() > p_LastHealMe[playerid]) {
// Stuff
p_LastHealMe[playerid] = gettime() + timeBetweenCalls;
} else {
// Error
}
}
for(new i = 0, j = GetPlayerMaxPoolSize(); i <= j; i++)
new timeforheal = 1; CMD:healme(playerid, params[]) { if(timeforheal == 1) { //your code here SetTimerEx("HealAgain",10000, false, "i", playerid); timeforheal = 0; } else SendClientMessage(playerid,/*your color*/,"The error message!"); return 1; } forward HealAgain(playerid); public HealAgain(playerid) { timeforheal = 1; } |
for(new i = 0, j = GetPlayerMaxPoolSize(); i <= j; i++){
if(Character[i][Admin] > 0) System_Scm(i, string, TYPE_NOTICE);
}
GetPlayerMaxPoolSize() |
GetPlayerPoolSize() |
Foreach should be better.
Where did you find GetPlayerMaxPoolSize? That's not even on the wiki, and GetPlayerPoolSize seems to be what you should be using. |