OnPlayerTakeDamage question
#2

I made something for you, test this out and tell me if it works(It should):
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
        new Float:HP;
        GetPlayerHealth(playerid, HP);
        if(weaponid == 34 && pInfo[issuerid][pVIP] >= 2) SetPlayerHealth(playerid, HP-200);
        GameTextForPlayer(issuerid, "Sniper Kill!", 2600, 4);
        PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
        return 1;
}
Reply


Messages In This Thread
OnPlayerTakeDamage question - by Patrick - 22.09.2013, 12:52
Re: OnPlayerTakeDamage question - by JimmyCh - 22.09.2013, 12:56
Re: OnPlayerTakeDamage question - by Patrick - 22.09.2013, 13:04
Re: OnPlayerTakeDamage question - by DanishHaq - 22.09.2013, 13:07
Re: OnPlayerTakeDamage question - by Patrick - 22.09.2013, 13:17
Re: OnPlayerTakeDamage question - by GoldZoroGrab - 22.09.2013, 13:43
Re: OnPlayerTakeDamage question - by DanishHaq - 22.09.2013, 13:46
Re: OnPlayerTakeDamage question - by Patrick - 22.09.2013, 13:52

Forum Jump:


Users browsing this thread: 1 Guest(s)