SA-MP Forums Archive
Animation? - 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: Animation? (/showthread.php?tid=365897)



Animation? - Makaveli93 - 04.08.2012

Uhh, what's the animation for sitting on a chair? I have a /seat command, but when you stand infront of the chair, you end up sitting on air instead of the chair, cause your character moves forward for some reason (collision probably). How to avoid this?

This is my /seat cmd:

pawn Код:
if(strcmp(cmd, "/seat", true) == 0)
    {
        if(pCriticallyInjured[playerid] == 1) return SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Critically injured!");
        if(!IsPlayerInAnyVehicle(playerid))
        {
            ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,0,1);
        }
        else
        {
            SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Not possible in a vehicle.");
        }
        return 1;
    }



Re: Animation? - RelaxCafe - 04.08.2012

https://sampforum.blast.hk/showthread.php?tid=6504 < there ya go. Look at every single on of them.