/onduty [Admin on duty CMD] Need HELP 3DTextLabel
#1

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.
Reply
#2

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)