Healths/armour of a clicked playerid
#1

somebody can help?
when i click on the player its shows hp:0,armour: 100
i loged with player that have 100 armour and 100 hp
and when i get damaged(losing healths only) i can see my health at armour:90 and hp stays in 0

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    #define STATS_CLICK hp: %f - armour: %f  
    new string[400], string2[64],Float:health,Float:armour;
    GetPlayerHealth(clickedplayerid,health);
    GetPlayerArmour(clickedplayerid,armour);
    format(string2, sizeof(string2), "Stats of %s", GetPName(clickedplayerid));
    format(string, sizeof(string), "hp: %f - armour: %f" ,health,armour);
    ShowPlayerDialog(playerid,100,DIALOG_STYLE_MSGBOX, string2, string, "Cancel", "");

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)