18.11.2014, 08:03
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
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; }
SetPlayerHealth(playerid, 175.0); // Set their health after they spawn if they have the swat skin.