[Ajuda] Algemas
#1

bom galera, eu criei um comando /algemar, certin.

atacha a algema no player e coloca os braзos do cara para tras.

quando dou /desalgemar, a algema some, mais o cara continua com braзo para tras.

ALGEMAR
PHP код:
                            SetPlayerAttachedObject(giveplayerid4194186, -0.0319990.024000, -0.024000, -7.900000, -32.000011, -72.2999871.1159981.3220001.406000);
                            
SetPlayerSpecialAction(giveplayeridSPECIAL_ACTION_CUFFED); 
DESALGEMAR
PHP код:
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4); 
agradeзo a quem ajudar a parar este anim '-'
Reply
#2

coloca no desalgemar.
pawn Код:
SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_NONE);
Reply
#3

Quote:
Originally Posted by GReeN_WOoD
Посмотреть сообщение
bom galera, eu criei um comando /algemar, certin.

atacha a algema no player e coloca os braзos do cara para tras.

quando dou /desalgemar, a algema some, mais o cara continua com braзo para tras.

ALGEMAR
PHP код:
                            SetPlayerAttachedObject(giveplayerid4194186, -0.0319990.024000, -0.024000, -7.900000, -32.000011, -72.2999871.1159981.3220001.406000);
                            
SetPlayerSpecialAction(giveplayeridSPECIAL_ACTION_CUFFED); 
DESALGEMAR
PHP код:
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4); 
agradeзo a quem ajudar a parar este anim '-'
Tente assim:
Код:
SetPlayerSpecialAction(id, SPECIAL_ACTION_NONE);
Reply
#4

No comando Desalgemar:
pawn Код:
SPECIAL_ACTION_NONE // Voltara Ao normal Acho eu porque vi NONE '-'
ClearAnimations(giveplayerid);
RemovePlayerAttachedObject(giveplayerid,4);
@EDIT
Postei junto -.-'
Reply
#5

Very Easy:
PHP код:
SetPlayerSpecialAction(idSPECIAL_ACTION_NONE); 
Reply
#6

pawn Код:
ClearAnimations(playerid);
RemovePlayerAttachedObject(playerid,4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
Reply
#7

pawn Код:
CMD:algemar(playerid, params[])
{
    new PTiD;
    if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /algemar [id]");
    SetPlayerAttachedObject(PTiD, 4, 19418, 6, -0.031999, 0.024000, -0.024000, -7.900000, -32.000011, -72.299987, 1.115998, 1.322000, 1.406000);
    SetPlayerSpecialAction(PTiD, SPECIAL_ACTION_CUFFED);
    return 1;
}

CMD:desalgemar(playerid, params[])
{
    new PTiD;
    if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /desalgemar [id]");
    RemovePlayerAttachedObject(PTiD, 4);
    SetPlayerSpecialAction(PTiD, SPECIAL_ACTION_NONE);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)