CMD Like ( If player gets shot)
#1

Is there some sort of thing That gives this :

If Player gets shot by a shotgun, he loses -40 health?
Im pretty good with scrripting, but ive never seen such command i wanna know if there is one

if(IsPlayerAimingAt) is not what im talking about. Im talking about when the player gets shot
Reply
#2

It's something like this?

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new
           Float:health;
    GetPlayerHealth(playerid, health);
    if(weaponid == 25) SetPlayerHealth(playerid, health-40);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)