19.08.2011, 13:19
Heey all,
I made a rank system with labels above head.
I am rank 21 and new players are rank 0.
But when they are in game they have the rank 21 label. I made the label at onplayerupdate.
Code:
I made a rank system with labels above head.
I am rank 21 and new players are rank 0.
But when they are in game they have the rank 21 label. I made the label at onplayerupdate.
Code:
Код:
if(ranklvl[playerid]==0)
{
new string[50];
format(string,sizeof(string),"XP:%d/25",GetPlayerScore(playerid));
TextDrawSetString(ys[playerid],string);
ranklabel[playerid] = Create3DTextLabel("Private(0)!", lred, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.5);
}
if(ranklvl[playerid]==21)
{
new string[50];
format(string,sizeof(string),"XP:%d/25000",GetPlayerScore(playerid));
TextDrawSetString(ys[playerid],string);
ranklabel[playerid] = Create3DTextLabel("Commander Of Army(21)!", lred, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.5);
}

