30.12.2011, 10:30
pawn Код:
new Text3D:levellabel[MAX_PLAYERS];
pawn Код:
Delete3DTextLabel(levellabel[playerid]);
pawn Код:
levellabel[playerid] = Create3DTextLabel("Player level", GetPlayerColor(playerid), 30.0, 40.0, 50.0, 10.0, 0);
Attach3DTextLabelToPlayer(levellabel[playerid], playerid, 0.0, 0.0, 0.7);
public lvltimer(playerid)
pawn Код:
new level[64], statsSTRING[128];
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 499 ){level="1 level - Telatabie";}
else if(GetPlayerScore(playerid) >= 500 && GetPlayerScore(playerid) <= 2499 ){level="2 level - Newbie";}
else if(GetPlayerScore(playerid) >= 2500 && GetPlayerScore(playerid) <= 4999 ){level="3 level - PRO";}
format(statsSTRING,sizeof(statsSTRING),"%s\n\t%dXP",level,GetPlayerScore(playerid));
Update3DTextLabelText(levellabel[playerid], GetPlayerColor(playerid), statsSTRING);
As you maybe understand it's a level system with 3d labels, but the problem is that it does not show label on every player.