Handcuffs System Problem
#1

Hi, I have a problem with the handcuffs system. When a player has the special animation, and when he press the Aim Key + the Enter Key (Combact Style), the special animation disappears. What I have to do to fix this?
Reply
#2

pawn Код:
freeze(cuffed_player_id); // at cuff
pawn Код:
unfreeze(cuffed_player_id); // at uncuff
Reply
#3

Quote:
Originally Posted by judothijs
Посмотреть сообщение
pawn Код:
freeze(cuffed_player_id); // at cuff
pawn Код:
unfreeze(cuffed_player_id); // at uncuff
I tested this for Scienziatopazzo, it worked.

BUT you could TogglePlayerControllable
Reply
#4

I don't want to freeze him, I want that if he press KEY AIM + F, the special animation comes again
Reply
#5

Quote:
Originally Posted by JAMMIEISFTW
Посмотреть сообщение
I tested this for Scienziatopazzo, it worked.

BUT you could TogglePlayerControllable
Yep, it's the same.
pawn Код:
TogglePlayerControllable(cuffed_player_id, 1); // for cuffed
TogglePlayerControllable(cuffed_player_id, 0); // for uncuffed
Reply
#6

Anyone can help me?
Reply
#7

Add this code under OnPlayerUpdate callback:

pawn Код:
public OnPlayerUpdate(playerid)
{
   if(IsPlayerCuffed[playerid]) // Replace with the cuff variable.
   {
       SetPlayerSpecialAction(playerb,SPECIAL_ACTION_CUFFED);
   }
   return 1;
}
Reply
#8

Quote:
Originally Posted by Randy More
Посмотреть сообщение
Add this code under OnPlayerUpdate callback:

pawn Код:
public OnPlayerUpdate(playerid)
{
   if(IsPlayerCuffed[playerid]) // Replace with the cuff variable.
   {
       SetPlayerSpecialAction(playerb,SPECIAL_ACTION_CUFFED);
   }
   return 1;
}
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)