Skins have more HP
#1

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
Reply
#2

Код:
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;
}
Reply
#3

Thanks
Reply
#4

Код:
SetPlayerHealth(playerid, 175.0); // Set their health after they spawn if they have the swat skin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)