Problem
#3

Beta.pwn is all the gamemode
This is my OnPlayerTakeDamage , btw i use 0.3x
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new string[128];
    if(gTeam[issuerid] == TEAM_COP || gTeam[issuerid] == TEAM_ARMYAIR || gTeam[playerid] == TEAM_ARMYLAND || gTeam[issuerid] == TEAM_CIA || gTeam[issuerid] == TEAM_SWAT)
    {
        if(gTeam[playerid] != TEAM_COP && gTeam[playerid] != TEAM_ARMYAIR && gTeam[playerid] != TEAM_ARMYLAND && gTeam[playerid] != TEAM_CIA && gTeam[playerid] != TEAM_SWAT && IsTazed[playerid] == 0)
        {
            if(weaponid == 23)
            {
                format(string,sizeof(string),"Police officer %s(%d) has tazed %s(%d).",PlayerName(issuerid),issuerid,PlayerName(playerid),playerid);
                SendClientMessageToAll(COLOR_DODGERBLUE,string);
                GameTextForPlayer(playerid, "~b~TAZED~n~~w~FOR ~y~3~w~SECONDS", 3000, 5);
                TogglePlayerControllable(playerid,0);
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.299999, 1, 1, 1, 0, 0);
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.299999, 1, 1, 1, 0, 0);
                IsTazed[playerid] =3;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem - by Problems - 19.02.2014, 19:11
Re: Problem - by Renaldasj - 19.02.2014, 19:21
Re: Problem - by Problems - 19.02.2014, 19:36
Re: Problem - by Konstantinos - 19.02.2014, 20:03
Re: Problem - by CrossUSAAF - 19.02.2014, 20:14
Re: Problem - by Problems - 19.02.2014, 21:04
Re: Problem - by Konstantinos - 19.02.2014, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)