02.11.2013, 09:40
My Server acutally lags after i fully scripted it..If i am moving then in other players screen it comes that i am standing at at one place and vice versa.....A Scripter told me to replace callback return 0 to 1 and i do so but then also it lags
the callback code is:
the callback code is:
Quote:
public OnPlayerUpdate(playerid) { if(!IsPlayerConnected(playerid)) return 0; // No weapons in interiors if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) { SetPlayerArmedWeapon(playerid,0); // fists return 0; // no syncing until they change their weapon } return 1; } |