SA-MP Forums Archive
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: 3dtextlabel (/showthread.php?tid=575834)



3dtextlabel - StR_MaRy - 30.05.2015

Код 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


Re: 3dtextlabel - StR_MaRy - 30.05.2015

bump


Re: 3dtextlabel - PepsiCola23 - 30.05.2015

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



Re: 3dtextlabel - StR_MaRy - 30.05.2015

look better before you write


Re: 3dtextlabel - StR_MaRy - 30.05.2015

bump