Removing weapon damage
#1

Is there a way to script it so guns do no damage?
Reply
#2

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID) { //Remove this if statement if you want EVERYTHING to do no damage (falls, explosions, ect still will)
        GivePlayerHealth( playerid, amount );
    }
    return true;
}
Simple.
Reply
#3

Quote:
Originally Posted by 2KY
Посмотреть сообщение
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID) { //Remove this if statement if you want EVERYTHING to do no damage (falls, explosions, ect still will)
        GivePlayerHealth( playerid, amount );
    }
    return true;
}
Simple.
Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)