SA-MP Forums Archive
Why to use a /sync command? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Why to use a /sync command? (/showthread.php?tid=313645)



Why to use a /sync command? - smokeweed - 26.01.2012

Why to use a /sync command? GetPlayerPos and SetPlayerPos.


Re: Why to use a /sync command? - MP2 - 26.01.2012

Erm, this may seem like a pretty obvious answer, but, to sync players..? Sometimes players can de-sync, this fixes it (apparently - never used it personally).


Re: Why to use a /sync command? - [ABK]Antonio - 26.01.2012

Quote:
Originally Posted by MP2
Посмотреть сообщение
Erm, this may seem like a pretty obvious answer, but, to sync players..? Sometimes players can de-sync, this fixes it (apparently - never used it personally).
Usually you would use ClearAnimations instead of get & set pos. Yeah, like above said, it syncs players, it was introduced a long time ago when sa-mp was still hell of desynced.


Re: Why to use a /sync command? - Face9000 - 26.01.2012

I don't see any help code request in this thread,btw,it's to sync players.

pawn Код:
dcmd_sync(playerid, params[])
{
    new Float:A;
    GetPlayerPos(playerid,X,Y,Z);
    GetPlayerFacingAngle(playerid,A);
    SetPlayerPos(playerid,X,Y,Z);
    SetPlayerFacingAngle(playerid,A);
    PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,0xD8F6F6FF,"You are now synched.");
    return 1;
}