Animations in cars - 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: Animations in cars (
/showthread.php?tid=87021)
Animations in cars -
Smokes - 17.07.2009
How do i script it so i can do animations in Vehicles, any time i try do it it says you cannot do animations in cars
Re: Animations in cars -
Pawno_Master - 17.07.2009
show us your script
Re: Animations in cars -
Smokes - 17.07.2009
i havent scripted any animations yet, im doing that now...all i need is a code that lets me use animations in cars
Re: Animations in cars -
Correlli - 17.07.2009
Quote:
Originally Posted by ekeleke
show us your script
|
Isn't important.
Try to search for something like this (if you're using any other script):
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
// animation command.
}
else
{
// can't use anim. cmd.
}
or:
pawn Код:
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER || GetPlayerState(playerid) != PLAYER_STATE_PASSENGER)
{
// animation command.
}
else
{
// can't use anim. cmd.
}
But if you're going to do commands by yourself just don't add vehicle/passenger state checks and it should work normal.
Re: Animations in cars -
Smokes - 17.07.2009
oh i get it thanks, i shoulda known that