Skins have more HP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skins have more HP (
/showthread.php?tid=546829)
Skins have more HP -
Sparke - 18.11.2014
Alright, I was wanting to script a little system where a the SWAT skin had abit more HP then the other skins. How do you detect a skin for OnPlayerTakeDamage? (Or for OnPlayerGiveDamage) callbacks
Re: Skins have more HP -
Pawnify - 18.11.2014
Код:
public OnPlayerSpawn(playerid)
{
if(GetPlayerSkin(playerid, 285))// Checks if they are using the swat skin.
{
SetPlayerHealth(playerid, 175); // Set their health after they spawn if they have the swat skin.
}
return 1;
}
Re: Skins have more HP -
Sparke - 18.11.2014
Thanks
Re : Skins have more HP -
Dutheil - 18.11.2014
Код:
SetPlayerHealth(playerid, 175.0); // Set their health after they spawn if they have the swat skin.