Pawno stops to work
#6

here is my commad, but i taze my self lol.
can anyone help?

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new Target;
    if(Holding(KEY_FIRE) || newkeys == KEY_FIRE)
    {
        if(Tazer[playerid] == 1)
        {
            if(!IsPlayerTazed(Target) && !IsPlayerCuffed(Target) && !IsPlayerTied(Target))
            {
                ApplyAnimation(playerid,"KNIFE","knife_3",4.1,0,1,1,0,0,1);
                if(!IsPlayerNearPlayer(playerid, Target, 5)) return SendClientMessage(playerid, COLOR_GREY, "You are too far away from that player.");
                //if(IsHoldingFirearm(Target)) return SendClientMessage(Shooter, COLOR_GREY, "You can't taze someone with a gun in hand.");
                // Got Tazed
                /*format(string, sizeof(string), "* %s aims their tazer on %s and tazes them.", RPN(Shooter), RPN(Target));
                SendNearbyMessage(Shooter, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);*/

                GameTextForPlayer(Target, "~r~Tazed", 3500, 3);
                // Custom Freeze
                ApplyAnimation(Target,"CRACK","crckdeth2",4.1,0,1,1,1,1,1);
                TogglePlayerControllable(Target, 0);
                // Tazed Detecting
                TogglePlayerTazed(Target, 1);
                // Tazer Timeout
                TazeTimeout[Target] = 11;
                TazeCountDown[Target] = SetTimerEx("TazeTimer", 1000, true, "d", Target);
            }
        }
    return 1;
}
Reply


Messages In This Thread
Pawno stops to work - by Rabea - 11.01.2015, 19:47
Re: Pawno stops to work - by Write - 11.01.2015, 19:50
Re: Pawno stops to work - by Vince - 11.01.2015, 19:50
Re: Pawno stops to work - by Rabea - 11.01.2015, 19:51
Re: Pawno stops to work - by Rabea - 11.01.2015, 19:53
Re: Pawno stops to work - by Rabea - 11.01.2015, 20:00
Re: Pawno stops to work - by Write - 11.01.2015, 20:03
Re: Pawno stops to work - by HeLiOn_PrImE - 11.01.2015, 20:49
Re: Pawno stops to work - by Dignity - 11.01.2015, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)