10.09.2012, 18:47
Hello i start to bullid a mask system but i have problem its work only to id 0 please help me
PHP код:
public OneSecondPublic(playerid)
{
Delete3DTextLabel(Mask[playerid]);
new Float: Health, Float: Armour, ArmourMathFlaw, HealthMathFlaw;
GetPlayerHealth(playerid, Health);
GetPlayerArmour(playerid, Armour);
HealthMathFlaw = floatround(Health, floatround_ceil);
ArmourMathFlaw = floatround(Armour, floatround_ceil);
MaskedName[playerid] = Player[playerid][MaskRandom];
format(sendername, MAX_PLAYER_NAME, "Mask[%d]\nHP:%d AR:%d",MaskedName[playerid],HealthMathFlaw,ArmourMathFlaw);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
Mask[playerid] = Create3DTextLabel(sendername,WHITE,x,y,z+2,20,0,0);
Attach3DTextLabelToPlayer(Mask[playerid],playerid,0.0,0.0,0.0);
)