11.09.2012, 07:33
Quote:
PHP код:
|
pawn Код:
public OnGameModeInit()
{
SetTimer("OneSecondPublic", 1000, true);
return 1;
}
forward OneSecondPublic();
public OneSecondPublic()
{
for (new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float: Health, Float: Armour, ArmourMathFlaw, HealthMathFlaw;
GetPlayerHealth(i, Health);
GetPlayerArmour(i, Armour);
HealthMathFlaw = floatround(Health, floatround_ceil);
ArmourMathFlaw = floatround(Armour, floatround_ceil);
MaskedName[i] = Player[i][MaskRandom];
format(sendername, MAX_PLAYER_NAME, "Mask[%d]\nHP:%d AR:%d",MaskedName[i],HealthMathFlaw,ArmourMathFlaw);
Update3DTextLabelText(Mask[i], 0xFFFFFFFF, sendername);
}
}
return 1;
}