What would cause this?
#1

A few people in my server said that when other players move, the dont actually see them move, untill they stop. Then its almost as if the players "teleport" but their not actually teleporting. It happened since i added this code into my gm..

Quote:

if(!IsPlayerLAdmin(playerid))
{
if(DMZone[playerid] == 0)
{
if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN)
{
new string [256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[ANTICHEAT]%s has been banned for having a minigun outside a DM", pName);
SendClientMessageToAll(0x33CCFFAA, string);
Ban(playerid);
}
}
return 0;
}

Would that cause the problem?
As when i loaded the previous GM which didnt have the above code,.. The players saw each other move perfectly like how it should be.


Thanks to anyone who can help.
Reply
#2

if is in a timer through all players with very low frequency of repetition, or is inside OnPLayerUpdate, then yes, that is the cause of the problem, and the problem is Lag.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)