08.03.2014, 11:49
Hi,
My story , iv maked server 3 years ago and its successfull , i wasnt get many players as this time , so i wasnt feel lags , now i get players and my server is lags for unknown reason, iv checked my GM twice all functions was ok
Well my server keep lagging when i get +60 players iv tried to use VPS and im now using hostskool , I dont know what is that but also my script is well i dont use many timers (totall 5 Timers), I m looking for someone can help me at skype: mahdiasali , and i just want to ask something when i restart the server lags is gone , I want to ask if there are problem with this timer:
Call Function:
Does this repeat many timers , how can i check if its timers problem if only 5 timers and i need plugin or person can help me thanks!
My story , iv maked server 3 years ago and its successfull , i wasnt get many players as this time , so i wasnt feel lags , now i get players and my server is lags for unknown reason, iv checked my GM twice all functions was ok
Well my server keep lagging when i get +60 players iv tried to use VPS and im now using hostskool , I dont know what is that but also my script is well i dont use many timers (totall 5 Timers), I m looking for someone can help me at skype: mahdiasali , and i just want to ask something when i restart the server lags is gone , I want to ask if there are problem with this timer:
Код:
public OnPlayerSpawn(playerid) { if(DMZone[playerid] >= 0) { SetPlayerHealth(playerid, 100000); SetTimerEx("AntiSpawnkill",4000,0,"i",playerid); } . . }
Код:
forward AntiSpawnkill(playerid); public AntiSpawnkill(playerid) { if(DMZone[playerid] == 0) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 1) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 2) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 3) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 4) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 5) { SetPlayerArmour(playerid,50); SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 6) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 7) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 8) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 9) { SetPlayerHealth(playerid,40); } if(DMZone[playerid] == 10) { SetPlayerHealth(playerid,40); } if(DMZone[playerid] == 11) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 12) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 13) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 14) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 15) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 16) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 17) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 18) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 19) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 20) { SetPlayerHealth(playerid,100); } if(DMZone[playerid] == 21) { SetPlayerHealth(playerid,100); } return 1; }