How to remove the 3dtextlabeltoplayer
#1

How can i remove all the 3dtextlabeltoplayer if the player is a normal player

Код:
public OnPlayerSpawn(playerid)
{
        new Text3D:label1 = Create3DTextLabel("..::[VIP]::..", 0x33CCFFAA, 30.0, 40.0, 50.0, 40.0, 0);
        new Text3D:label = Create3DTextLabel("..::[ADMIN]::..", 0x99FF00AA, 30.0, 40.0, 50.0, 40.0, 0);
        new Text3D:label2 = Create3DTextLabel("..::[ADMIN]::..", 0x99FF00AA, 30.0, 40.0, 50.0, 40.0, 0);
	TogglePlayerControllable(playerid,1);
	SetPlayerArmour(playerid, 100.0);
	SetPlayerHealth(playerid, 100);
 	if(IsPlayerVipMember(playerid))
	{
	    Attach3DTextLabelToPlayer(label1, playerid, 0.0, 0.0, 0.25);
	    SetPlayerPos(playerid, 3383.0039,2360.2415,8.120);
	    GameTextForPlayer(playerid, "WELCOME HOME VIP", 5000, 6);
	    TogglePlayerControllable(playerid, false);
	    SetTimerEx("Unfreeze", 5000, false, "i", playerid);
	    SetPlayerArmour(playerid, 100.0);
	    SetPlayerHealth(playerid, 100);
            if(IsPlayerLuxAdmin(playerid))
    	    {
	    	   Delete3DTextLabel(label1);
		   Atach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.25);
		   SetPlayerPos(playerid, 3384.6399,2360.1299,2.5485);
	    	   GameTextForPlayer(playerid, "WELCOME HOME ADMIN", 5000, 6);
	 	   TogglePlayerControllable(playerid, false);
	 	   SetTimerEx("Unfreeze", 5000, false, "i", playerid);
	 	   SetPlayerArmour(playerid, 100.0);
	 	   SetPlayerHealth(playerid, 100);
		   if(IsPlayerAdmin(playerid))
		   {
		           Delete3DTextLabel(label);
                           Delete3DTextLabel(label1);
		           Attach3DTextLabelToPlayer(label2, playerid, 0.0, 0.0, 0.25);
			   SetPlayerPos(playerid, 3384.6399,2360.1299,2.5485);
		    	   GameTextForPlayer(playerid, "WELCOME HOME ADMIN", 5000, 6);
		 	   TogglePlayerControllable(playerid, false);
		 	   SetTimerEx("Unfreeze", 5000, false, "i", playerid);
		 	   SetPlayerArmour(playerid, 100.0);
		 	   SetPlayerHealth(playerid, 100);
		   }
             }
	}
	return 1;
}
Reply


Messages In This Thread
How to remove the 3dtextlabeltoplayer - by haridz - 02.05.2015, 13:51
Re: How to remove the 3dtextlabeltoplayer - by arlindi - 02.05.2015, 13:57
Re: How to remove the 3dtextlabeltoplayer - by Mencent - 02.05.2015, 14:09

Forum Jump:


Users browsing this thread: