17.08.2014, 21:08
Okay i maked a health money armour and name in textdraw for the spec command but the problem is, if you spec someone you will see your own name by Name: own health own money not from the other player, Its now in playerid, but i got the same problem by playerb, so what do i need to do to see the other guys/girls status
pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_SPECTATING)
{
new string[235], Float:H, Float:A;
GetPlayerHealth(playerid, H); GetPlayerArmour(playerid, A);
format(string,sizeof(string),"Health: %0.1f",H);
TextDrawSetString(Health1, string);
format(string,sizeof(string),"Armour: %0.1f",A));
TextDrawSetString(Name, string);
format(string,sizeof(string),"Money: %d",GetPlayerMoney(playerid));
TextDrawSetString(Money, string);
format(string,sizeof(string),"Name: %s",RPN(playerid));
TextDrawSetString(Name, string);
}