25.11.2015, 21:07
So.. I want every player in my server to each have its own Dynamic3DTextLabels, but when the players reach 20-30+ some players has its own Labels, and others not
Here's what i did:
Please Help.
Thanks!
Here's what i did:
Код:
new Text3D:RankLabels[MAX_PLAYERS] = {Text3D:INVALID_3DTEXT_ID, ...}; public OnPlayerSpawn(playerid) { if(!IsValidDynamic3DTextLabel(RankLabels[playerid])) RankLabels[playerid] = CreateDynamic3DTextLabel(lrank, 0x009900BB, 0.0, 0.0, 0.60, 25.0, .attachedplayer=playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { DestroyDynamic3DTextLabel(RankLabels[playerid]), RankLabels[playerid] = Text3D:INVALID_3DTEXT_ID; return 1; }
Thanks!