20.05.2016, 14:48
Hi.
Some tricky players visible/invisible object spawned and in this wise my server lags. These is there a way to prevent ?
I prepare something for it but doesn't work.
Some tricky players visible/invisible object spawned and in this wise my server lags. These is there a way to prevent ?
I prepare something for it but doesn't work.
PHP Code:
new HackObjects[MAX_PLAYERS];
PHP Code:
public OnPlayerConnect(playerid){
SetTimerEx("HackRemoveObjects", 1000, false, "i", playerid);
return 1;}
PHP Code:
forward HackRemoveObjects(playerid);
public HackRemoveObjects(playerid){
for(new i = 0; i < sizeof(HackObjects); i ++){
DestroyObject(HackObjects[i]);
DestroyPlayerObject(playerid, HackObjects[i]);
HackObjects[i] = 0;}
return 1;
}