06.11.2016, 17:06
I use: MYSQL R39-6, ZMCD+SSCANF for commands. I have only 2 global timers. (1000ms / 4 seconds). I don't use "OnPlayerUpdate". To restriction command for a time use "gettime()". GM is optimized with various methods posted here on the forum. The server has lag when over 150 players online.
My include:
The first global timer (1000ms) has 423 lines with "if", exemple:
You greatly help you with some answers. Thank you all.
My include:
Код HTML:
#include <a_samp> #include <a_mysql> #include <a_zones> #include <foreach> #include <strlib> #include <streamer> #include <zcmd> #include <getvcolor> #include <sscanf2> #include <mSelection>
Код HTML:
foreach(new i : Player) { if(pInfo[i][pTog][6] == 1) -> TextDrawShow ... etc, etc if(Iter_Contains(Paintp, i) && PST > gtm) -> ... etc, etc code if(pInfo[i][pMute] > 0) -> ... etc, etc code if(pInfo[i][pWantedLevel] > 0 && !IsPlayerAttachedObjectSlotUsed(i, 3)) -> ... etc, etc code if(pInfo[i][pJailed] >= 1) -> ... etc, etc code if(IsPlayerInRangeOfPoint(i, 75.0, 1107.8771,-1794.3970,16.6937) || IsPlayerInRangeOfPoint(i, 85.0, 1217.0133,-1740.3961,13.5955) || IsPlayerInRangeOfPoint(i, 30.0, 1003.8006,-938.4607,42.2797) || IsPlayerInRangeOfPoint(i, 30.0, 647.529,-1357.39,13.5784) || IsPlayerInRangeOfPoint(i, 45.0, -60.6408,-1128.0583,1.1781) || IsPlayerInRangeOfPoint(i, 25.0, 2102.3037,2235.5540,11.0234) || IsPlayerInRangeOfPoint(i, 25.0, 1178.9655,-1323.4093,14.1461) || IsPlayerInRangeOfPoint(i, 25.0, 332.0587,-1516.1661,35.9672) || IsPlayerInRangeOfPoint(i, 25.0, 545.5265,-1283.1184,17.2482) || IsPlayerInRangeOfPoint(i, 25.0, 1034.1200,-1030.5387,32.1489) || IsPlayerInRangeOfPoint(i, 30.0, 1628.1425,584.9908,1.7578) || IsPlayerInRangeOfPoint(i, 28.0, 2131.2944,1403.6899,11.1328) || IsPlayerInRangeOfPoint(i, 50.0, -566.2581,-1600.5735,-41.9882) || IsPlayerInRangeOfPoint(i, 90.0, -1424.7450,1615.7667,1052.5313) || IsPlayerInRangeOfPoint(i, 250.0, -376.1633,-1432.8551,25.7266)) -> ... etc, etc code ++++ player if. }