Sit player in chair - 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: Sit player in chair (
/showthread.php?tid=572720)
Sit player in chair -
Banditukas - 01.05.2015
Hi,
How to put player in chair (object) i mean set sitting animation and setplayerpos on chair.
Re: Sit player in chair -
Karan007 - 01.05.2015
Here is the code.
PHP код:
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
Re: Sit player in chair -
busternr - 01.05.2015
Just check all the anims in wiki.sa-mp.com and you will find everything you need
Re: Sit player in chair -
Hreesang - 04.05.2017
Here is some commands I just made, hope it helps you.
Код:
CMD:seat(playerid, params[])
{
ApplyAnimation(playerid, "PED", "SEAT_DOWN", 4.0, 0, 0, 0, 0, 0, 1);
SetTimerEx("SitAnim", 1000, false, "i", playerid);
return 1;
}
forward SitAnim(playerid);
public SitAnim(playerid)
{
ApplyAnimation(playerid, "PED", "SEAT_IDLE", 4.1, 1, 0, 0, 0, 0, 1);
return 1;
}
CMD:standup(playerid, params[])
{
ApplyAnimation(playerid, "PED", "SEAT_UP", 4.0, 0, 0, 0, 0, 0, 1);
return 1;
}
Re: Sit player in chair -
ElMaestro123 - 04.05.2017
You should also keep looking for a perfect angle of sitting without making player adjust angle by using setplayerpos and setplayerfacing angle if used for one chair or something...