Apply Animation, Not working?
#3

PHP код:
CMD:cuff(playeridparams[])
{
    if(
LoggedIn[playerid] == 0) return SendClientMessage(playeridCOLOUR_GREY"You must be logged in to use this command.");
    new 
giveplayeridstring[128];
    if(
sscanf(params"u"giveplayerid)) return SendClientMessage(playeridCOLOUR_GREY"Usage: /cuff [player id or name]");
    if(
Faction[playerid] != 1) return SendClientMessage(playeridCOLOUR_GREY"You are not a member of the police.");
    if(!
IsPlayerNearPlayer(playeridgiveplayerid3.0))return SendClientMessage(playeridCOLOUR_GREY"You must be close to the player to cuff them.");
    {
        
TogglePlayerControllable(giveplayerid0);
        
ClearAnimations(giveplayerid);
        
ApplyAnimation(giveplayerid"PED""cower"1100001);
        
format(stringsizeof(string), "Officer %s has placed handcuffs on %s"GetNameEx(playerid), GetNameEx(giveplayerid));
        
ProxDetector(30.0playeridstringCOLOUR_PURPLECOLOUR_PURPLECOLOUR_PURPLECOLOUR_PURPLECOLOUR_PURPLE);
    }
    return 
1;

Reply


Messages In This Thread
Apply Animation, Not working? - by Dokins - 21.09.2011, 16:50
Re: Apply Animation, Not working? - by sleepysnowflake - 21.09.2011, 16:54
Re: Apply Animation, Not working? - by =WoR=G4M3Ov3r - 21.09.2011, 17:01
Re: Apply Animation, Not working? - by Davz*|*Criss - 21.09.2011, 17:01
Re: Apply Animation, Not working? - by Kingunit - 21.09.2011, 17:02
Re: Apply Animation, Not working? - by Kush - 21.09.2011, 17:26
Re: Apply Animation, Not working? - by sleepysnowflake - 21.09.2011, 17:29
Re: Apply Animation, Not working? - by IstuntmanI - 21.09.2011, 18:47
Re: Apply Animation, Not working? - by Vince - 21.09.2011, 20:46
Re: Apply Animation, Not working? - by dreamworld - 21.09.2011, 20:58
Re: Apply Animation, Not working? - by Dokins - 21.09.2011, 21:06
Re: Apply Animation, Not working? - by =WoR=Varth - 22.09.2011, 07:03
Re: Apply Animation, Not working? - by Stigg - 22.09.2011, 08:00
Re: Apply Animation, Not working? - by =WoR=Varth - 22.09.2011, 08:07
Re: Apply Animation, Not working? - by Stigg - 22.09.2011, 08:08

Forum Jump:


Users browsing this thread: 1 Guest(s)