01.05.2015, 10:12
Hi,
How to put player in chair (object) i mean set sitting animation and setplayerpos on chair.
How to put player in chair (object) i mean set sitting animation and setplayerpos on chair.
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
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; }