3dtextlabel
#1

Код HTML:
if(strcmp(cmd, "/aod", true) == 0)
	{
		if (PlayerInfo[playerid][pAdmin] >= 1)
		{
		    if(AdminDuty[playerid] == 1)
		    {
                       GetPlayerName(playerid, sendername, sizeof(sendername));
			           format(string, sizeof(string), "{FF0000}[Admin Info] {FFFFFF}%s [{FF0000}ID: {FFFFFF}%d] - Numai e la datorie {80FF00}[nu il mai contactati]", sendername,playerid);
                       SendClientMessageToAll(COLOR_DBLUE,string);
   				       AdminDuty[playerid] = 0;
				       SetPlayerHealth(playerid,100);
				       SetPlayerArmour(playerid,0);
				       SetPlayerToTeamColor(playerid);
				       DeletePlayer3DTextLabel(playerid, duty);
			}
		    else
		    {
                GetPlayerName(playerid, sendername, sizeof(sendername));
		    	format(string, sizeof(string), "{FF0000}[Admin Info] {FFFFFF}%s [{FF0000}ID: {FFFFFF}%d] - E la datorie {80FF00}[daca aveti nevoie de ajutor {FF0000}/w %s{80FF00}]",sendername,playerid);
				SendClientMessageToAll(0xFAAFBEFF,string);
				AdminDuty[playerid] = 1;
				SetPlayerHealth(playerid,100);
				SetPlayerArmour(playerid,100);
				new Text3D:duty = Create3DTextLabel("Admin On-Duty", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    			Attach3DTextLabelToPlayer(duty, playerid, 0.0, 0.0, 0.7);
		    }
		}
		else
		{
			SendClientMessage(playerid,COLOR_GREY,"{FF0000}[Play-Hard]: {FFFFFF}Nu ai acces.");
		}
		return 1;
	}
hi guys when an admin want to use /aod for on-duty to create a 3dtextlabel up then when you try to use again /aod you go off-duty and make the 3dtextlabel disappear
Reply
#2

bump
Reply
#3

PHP код:
new Text3D:label Create3DTextLabel("Admin on duty"0xB4B4B4FF30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelplayerid0.00.00.3); 
Reply
#4

look better before you write
Reply
#5

bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)