31.05.2017, 00:13
mask system shows the id and stranger name, but can't print health and such it prints in-game like "Stranger XXX Health".
Quote:
stock PlayerNameEx(playerid) { new name[MAX_PLAYER_NAME]; new Float:health, Float:armour; GetPlayerHealth(playerid, health); GetPlayerArmourEx(playerid, armour); if(GetPVarInt(playerid, "MaskUse") == 1) { format(name,sizeof(name),"Stranger(%d)\n(Health: %.1f, Armour: %.1f)",GetPVarInt(playerid, "MaskID")); return name; } format(name, sizeof(name), "%s", PlayerInfo[playerid][pName]); return name; } |