Why to use a /sync command?
#1

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

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).
Reply
#3

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.
Reply
#4

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)