/sit makes it nonrp - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /sit makes it nonrp (
/showthread.php?tid=269276)
/sit makes it nonrp -
||123|| - 15.07.2011
Probably alot of people faced this issue. So, I have this command, /chairsit:
pawn Код:
if(strcmp("/chairsit", cmdtext, true, 4) == 0)
{
ApplyAnimation(playerid,"PED","SEAT_down",3,0,1,1,1,1,1);
return 1;
}
So the problem is, when I do /chairsit, the animation does apply to the player, but the player, instead of getting on the seat, he gets above the seat, like having a gap of air in between him and the chair. Is there any solution for it, something like changing his pos or anything to get him placed on the seat successfully? Or is there any other animation which works best to make him RPly sit down on a chair?
Re: /sit makes it nonrp -
Kush - 15.07.2011
Unfortunatley no. That's simply how the animation is.
Re: /sit makes it nonrp -
woot - 15.07.2011
https://sampwiki.blast.hk/wiki/ApplyAnimation
Check opt2 and opt3.
Re: /sit makes it nonrp -
||123|| - 15.07.2011
My animation had opt2 and opt3, both to 1. Should I change them to zero?
Re: /sit makes it nonrp -
Vince - 15.07.2011
Use this one instead:
pawn Код:
ApplyAnimation(playerid, "PED", "SEAT_idle", 1.0, 1, 0, 0, 0, 0);
Re: /sit makes it nonrp -
||123|| - 15.07.2011
Thanks Vince, it helped. Reputation.