how to make breakcuff command?
#2

It's quite simple, as you can see you got a variable IsCuffed[ID] = 1 on the cuff thing.
What you'll do next is:
pawn Код:
//Same shit about distances, or if player isn't cuffed, etc..

if(IsCuffed[ID] == 0)
{
format(string, sizeof(string), "%s ain't cuffed nigga.", PlayerName(ID));
SendClientMessage(playerid, -1, string);
}


//Then let's uncuff him, with you CMD, you will put the following:

IsCuffed[ID] = 0; // Not cuffed
TogglePlayerControllable(ID,1); //Controllable
ClearAnimations(ID); //Removing the animation off the player
Reply


Messages In This Thread
how to make breakcuff command? - by Uberanwar - 17.08.2013, 12:41
Re: how to make breakcuff command? - by JimmyCh - 17.08.2013, 12:54
Re: how to make breakcuff command? - by Uberanwar - 17.08.2013, 13:02
Re: how to make breakcuff command? - by JimmyCh - 17.08.2013, 13:07
Re: how to make breakcuff command? - by Uberanwar - 17.08.2013, 13:12
Re: how to make breakcuff command? - by Vanter - 17.08.2013, 13:18
Re: how to make breakcuff command? - by Kells - 17.08.2013, 13:24
Re: how to make breakcuff command? - by Vanter - 17.08.2013, 13:35
Re: how to make breakcuff command? - by Uberanwar - 17.08.2013, 16:00
Re: how to make breakcuff command? - by dominik523 - 17.08.2013, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)