Tazer = SD Pistol Problem
#2

Try this:

pawn Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    if(GetPlayerWeapon(Shooter) == 23 && (gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMY && gTeam[playerid] != TEAM_CIA))
    {
        new string[17+48], playerid;
        TogglePlayerControllable(Target, true);
        ApplyAnimation(Target,"CRACK","crckdeth2",4.1,1,1,1,1,1);
        pTazed[Target] = 1;
        tazetimer[Target] = SetTimerEx("Tazed", 10000, 0, "d", Target);
        format(string, sizeof(string), "%s has been tazed by %s.", RemoveUnderScore(Target), RemoveUnderScore(Shooter));
        ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Tazer = SD Pistol Problem - by Patrick - 03.12.2012, 21:44
Re: Tazer = SD Pistol Problem - by LarzI - 03.12.2012, 21:47
Re: Tazer = SD Pistol Problem - by Patrick - 03.12.2012, 21:53
Re: Tazer = SD Pistol Problem - by LarzI - 03.12.2012, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)