bigger damage
#1

as the topic how to do so with the appropriate weapons have asked the larger damage?

Regards!
Reply
#2

You can increase damage amount using OnPlayerTakeDamage callback.
Example:
Код:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart) // This callback is called whenever player takes damage
{
	new Float:hp;
	GetPlayerHealth(playerid, hp);
	SetPlayerHealth(playerid, hp - 1.0); // It will increase damage by 1.0
	return 1;
}
It's just an example, it'll not work if player has armour.
There are some tutorials in this forums about custom damage that you might want to check.
https://sampforum.blast.hk/showthread.php?tid=558839
https://sampforum.blast.hk/showthread.php?tid=488539
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)