Little Help!
#1

Hello again. I want to create my own weapon damage system. But which function is checking how much damage which weapon take anyone know? I was searching but I didn`t find.. Anyone?
Reply
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    if(weaponid == /*weapon id*/) SetPlayerHealth(playerid, /*the player's HP - normally it follows "HP - x", where x is the ammount of damage taken by each shot*/);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)