SA-MP Forums Archive
Scripting help [+REP everyday just help mee] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Scripting help [+REP everyday just help mee] (/showthread.php?tid=552137)



Scripting help [+REP everyday just help mee] - arlindi - 22.12.2014

OnPlayerSpawn
pawn Код:
PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(PLabbelClass[playerid], playerid, 0, 0, 0.4);
OnPLayerUpdate
pawn Код:
Update3DTextLabelText(PLabbelClass[playerid], 0xFFFFFFFF, GetClassName(playerid));
When the 3D Label text updatet he create the new label and dont remove the label before!!
Soo he dont delete the lbabbel in onPlayerSpawn
And i need to Delete it every OnPlayerUpdate

ANYONEEEEEE HELP MEEEEEEEEE I WILL REP EVERY DAY JUST PLEASE
__________________


Re: Scripting help [+REP everyday just help mee] - RaeF - 22.12.2014

Try it
pawn Код:
if (PLabbelClass[playerid])
    Delete3DTextLabel(PLabbelClass[playerid]);

PLabbelClass[playerid] = Create3DTextLabel(GetClassName(playerid),0xFFD700FF,30.0,40.0,50.0,40.0,0);
        Attach3DTextLabelToPlayer(PLabbelClass[playerid], playerid, 0, 0, 0.4);



Re: Scripting help [+REP everyday just help mee] - arlindi - 22.12.2014

Where to add dhis?? On player spawn or onplayerupdate


Re: Scripting help [+REP everyday just help mee] - RaeF - 23.12.2014

OnPlayerSpawn


Re: Scripting help [+REP everyday just help mee] - arlindi - 23.12.2014

I added it OnPlayerUpdate and works with some next adding
Thanks

Can Give mee the id of "?" in mSelection
Example like this "i" 1239

Help mee pleasE