SA-MP Forums Archive
/onduty [Admin on duty CMD] Need HELP 3DTextLabel - 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: /onduty [Admin on duty CMD] Need HELP 3DTextLabel (/showthread.php?tid=409258)



/onduty [Admin on duty CMD] Need HELP 3DTextLabel - California_ - 20.01.2013

Hi, I need help with this 'DeletePlayer3DTextLabel"

Heres my code:


pawn Код:
dcmd_onduty(playerid,params[])
{
  #pragma unused params
  if(PlayerInfo[playerid][Level] > 1)
  {
  new Text3D:label = Create3DTextLabel("-Admin ON Duty- Dont Kill!",0xEE11D8C8 , 30.0, 40.0, 50.0, 40.0, 0);
    SendClientMessage(playerid,0x1DFB04C8,"You are Now On Admin Duty Duty.");
    SendClientMessage(playerid,red,"DO NOT KILL PEOPLE WHILE ON DUTY");
    SendClientMessage(playerid,PINK,"You Have Been Equipped with a Camera, To get Photos Of Cheaters.");
    SendClientMessage(playerid,PINK,"You Have Been Equipped with a Minigun To Kill Cheaters.");
    SetPlayerColor(playerid,0xF709DFC8);
    SetPlayerSkin(playerid,189);
    GivePlayerWeapon(playerid,38,1800);
    GivePlayerWeapon(playerid,43,1800);
      Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    return 1;
}

How do i delete the 3D Text Label in another Command Please Help I need this done for my gang war server.


Re: /onduty [Admin on duty CMD] Need HELP 3DTextLabel - DaRk_RaiN - 20.01.2013

pawn Код:
dcmd_offduty(playerid,params[])
{
DeletePlayer3DTextLabel(playerid,label);
    return 1;
}



Respuesta: /onduty [Admin on duty CMD] Need HELP 3DTextLabel - hotspicytaco - 20.01.2013

Quote:
Originally Posted by California_
Посмотреть сообщение
pawn Код:
new Text3D:label
Make it global(put it outside the command).