[FilterScript] Simple Sync Filterscript
#1

Hello. I've made a simple /sync filterscript.
What does it do?

It's good if you're bugged, type /sync and you'll be unbugged.
It's good if you're being car rammed, type /sync and you won't be.
You can't stop any animation? Use /sync. It will clear your animations.
You stuck? Use /sync.


Warning: If the player is frozen (admin freeze) he can evade his punishment.

Install: Just move sync.pwn and sync.amx to your filterscripts folder.
Then write sync in your server.cfg document - here



Free download:
solidfiles
link_2

pastebin
Reply
#2

A source code link would be nice, if you could also upload it to pastebin, I'd appreciate it.
Reply
#3

Pastebin please!
Reply
#4

link updated!
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)