How to make Hp & Armour show 3d
#6

Код:
//------------[Showhp]---------
new Text3D:ShowHp[MAX_PLAYERS];
new Text3D:ShowAr[MAX_PLAYERS];

ShowHp[playerid] = Create3DTextLabel(" ",0xFFFFFFAA,40.0,20.0,-40.0,10.0,0,0);
Attach3DTextLabelToPlayer(ShowHp[playerid], playerid, 0.5, 0.2, -0.6);
ShowAr[playerid] = Create3DTextLabel(" ",0xFFFFFFAA,0.0,0.0,-20.0,10.0,0,0);
Attach3DTextLabelToPlayer(ShowAr[playerid], playerid, 0.0, 0.0, -0.0);

SetTimer("UpdateHpAr", 500, true);

forward UpdateHpAr();
public UpdateHpAr()
{
	for(new p; p < MAX_PLAYERS; p++)
	{
		new 
			string[15],
			Float:Armour,
			Float:Health;

		GetPlayerHealth(playerid,Health);
		GetPlayerArmour(playerid,Armour);
		format(string, sizeof(string), "аЕЧНґ :%d",floatround(Health));
		Update3DTextLabelText(ShowHp[p],0xFFFFFFAA,string);
		format(string, sizeof(string), "аЎГТР : %d",floatround(Armour));
		Update3DTextLabelText(ShowAr[p],0xFFFFFFAA,string);

	}
}
Reply


Messages In This Thread
How to make Hp & Armour show 3d - by arititlez - 17.08.2013, 17:15
Re: How to make Hp & Armour show 3d - by arititlez - 17.08.2013, 17:17
Re: How to make Hp & Armour show 3d - by arititlez - 17.08.2013, 18:53
Re: How to make Hp & Armour show 3d - by arititlez - 15.10.2013, 05:23
Re: How to make Hp & Armour show 3d - by arititlez - 15.10.2013, 06:01
Re: How to make Hp & Armour show 3d - by rickisme - 15.10.2013, 09:24
Re: How to make Hp & Armour show 3d - by arititlez - 15.10.2013, 18:47
Re: How to make Hp & Armour show 3d - by arititlez - 15.10.2013, 19:21
Re: How to make Hp & Armour show 3d - by rickisme - 15.10.2013, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)