[FilterScript] Simple Sync Filterscript
#5

Thanks! I had a look at the code and I saw this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/sync", cmdtext, true, 10) == 0)
    {
        new Float:X;
        new Float:Y;
        new Float:Z;
        TogglePlayerControllable(playerid,1);
        GetPlayerPos(playerid,X,Y,Z);
        SetPlayerPos(playerid,X,Y,Z+2);
        ClearAnimations(playerid);
        PlayerPlaySound(playerid, 1137, X, Y, Z);
        SendClientMessage(playerid,0x00FFFFFF,"You are synced.");
        return 1;
    }
    return 0;
}
I'm not able to test it to a local host because I will never be desynced, but it happens when I lag in servers with a lot of people. So, it basically unfreeze a player, set his position 2 meters higher and clear the animations will make the player be synced again? If it does, nice.

Note; the lenght of the command "/sync" is 5, not 10.
Reply


Messages In This Thread
Simple Sync Filterscript - by Ped_Dep1 - 07.01.2013, 18:00
Re: Simple Sync Filterscript - by Konstantinos - 07.01.2013, 18:11
Re: Simple Sync Filterscript - by x96664 - 07.01.2013, 18:38
Re: Simple Sync Filterscript - by Ped_Dep1 - 08.01.2013, 11:02
Re: Simple Sync Filterscript - by Konstantinos - 11.01.2013, 10:36

Forum Jump:


Users browsing this thread: 2 Guest(s)