Naimation - 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: Naimation (
/showthread.php?tid=261668)
Naimation -
cruising - 14.06.2011
Hello!
This animation is only visible to the users who use the CMD, why?
pawn Код:
COMMAND:sit(playerid, params[])
{
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,0,0,1,1);
}
return 1;
}
Re: Naimation -
King Ace - 14.06.2011
If I am right
pawn Код:
ApplyAnimation(playerid,"PED","SEAT_down",4.0, 1, 0, 0, 1, 1);
Re: Naimation -
cruising - 14.06.2011
Quote:
Originally Posted by King Ace
If I am right
pawn Код:
ApplyAnimation(playerid,"PED","SEAT_down",4.0, 1, 0, 0, 1, 1);
|
Nope, same with that to
Re: Naimation -
King Ace - 14.06.2011
"SEAT_down" to "SEAT_DOWN"
Re: Naimation -
cruising - 14.06.2011
Quote:
Originally Posted by King Ace
"SEAT_down" to "SEAT_DOWN"
|
Doesnt matter, the cmd still works, but not visible for other players
Re: Naimation -
King Ace - 14.06.2011
Try using this method:
https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction
Re: Naimation -
Steven82 - 14.06.2011
Are you animations preloaded when the server starts or player spawns? If not, do the command twice and if it does work, your going to need to preload the animations.
Re: Naimation -
cruising - 14.06.2011
Quote:
Originally Posted by Steven82
Are you animations preloaded when the server starts or player spawns? If not, do the command twice and if it does work, your going to need to preload the animations.
|
Uhm preloaded?
I have to type the cmd twice yes to do the anime, and the anime does not being visible for others, only for you.
Re: Naimation -
cruising - 14.06.2011
Quote:
Originally Posted by King Ace
|
i just get errors with this method
pawn Код:
if(strcmp(cmd, "/handsup", true) == 0)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
return 1;
}