17.08.2014, 22:43
Quote:
Okay well, the real problem is, you see the money armour name and health from ID 0 How to fix that
pawn Код:
|
Here you go :-
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
new id, string[235], Float:H, Float:A;
GetPlayerHealth(playerb, H); GetPlayerArmour(idplayerbA);
format(string,sizeof(string),"Health: %0.1f",H);
TextDrawSetString(Health1, string);
format(string,sizeof(string),"Armour: %0.1f",A);
TextDrawSetString(Armour1, string);
format(string,sizeof(string),"Money: %d",GetPlayerMoney(playerb));
TextDrawSetString(Money, string);
format(string,sizeof(string),"Name: %s",RPN(playerb));
TextDrawSetString(Name, string);
}