Naimation
#1

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;
}
Reply
#2

If I am right
pawn Код:
ApplyAnimation(playerid,"PED","SEAT_down",4.0, 1, 0, 0, 1, 1);
Reply
#3

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
Reply
#4

"SEAT_down" to "SEAT_DOWN"
Reply
#5

Quote:
Originally Posted by King Ace
Посмотреть сообщение
"SEAT_down" to "SEAT_DOWN"
Doesnt matter, the cmd still works, but not visible for other players
Reply
#6

Try using this method: https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction
Reply
#7

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.
Reply
#8

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.
Reply
#9

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)