animation arrest
#1

I'm looking animation arrest of this photo.

http://www.sa-mp.com/screens/cuffed_action1b.png

I mean the guy with the handcuffs.
Reply
#2

This is the object (cuff) which is on the player's hand
Код:
SetPlayerAttachedObject(giveplayerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
And this is the animation I mean the player hand position
Код:
SPECIAL_ACTION_CUFFED
Use it as:
Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
Reply
#3

LOL no not ApplyAnimation
its SetPlayerSpecialAction

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
Reply
#4

Quote:
Originally Posted by Romel
Посмотреть сообщение
LOL no not ApplyAnimation
its SetPlayerSpecialAction

pawn Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
Ohh yeah I forgot lol :P
Reply
#5

I just made ​​a script but my character does not perform the animation. Handcuffs are formed correctly.

pawn Код:
#include <a_samp>
#include <zcmd>

CMD:skuj(playerid, params[])
{
    if(!IsNumeric(params) || isnull(params))
        return SendClientMessage(playerid, -1, "Użyj: /skuj <id>");
    new player = strval(params);
   
    SetPlayerSpecialAction(player, SPECIAL_ACTION_CUFFED);
    SetPlayerAttachedObject(player, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
    return 1;
}
   
   
stock IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Reply
#6

Someone help me?
Reply
#7

Quote:
Originally Posted by inferno211
Посмотреть сообщение
Someone help me?
Bro the cuffed animation was added in 0.3e it won't work if you are using SA-MP version < 0.3e. So you should upgrade to 0.3e to be able to use this.



And by the way your code must be like this:
pawn Код:
#include <a_samp>
#include <zcmd>

CMD:skuj(playerid, params[])
{
    if(!IsNumeric(params) || isnull(params))
        return SendClientMessage(playerid, -1, "Użyj: /skuj <id>");
    new player = strval(params);
   
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);//here you missed 'id' from playerid
    SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);//here you missed 'id' from playerid
    return 1;
}
   
   
stock IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0') return 0;
    }
    return 1;
}
Reply
#8

You could just the animation:

pawn Код:
ApplyAnimation(iD, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
I use that and its quite effective.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)