[FilterScript] ADMIN LABEL FS :)
#1

this is the fs which indicates the admin i have scripted upto 5 maximum levels.. but u can edit it..it is totally modifyable....


how to use it >> just put the script in your gamemode or pm me so i can give u the amx


Код:
public OnPlayerConnect(playerid)
{
    if(pInfo[playerid][Admin] == 0)
	{
	    label2[playerid] = Create3DTextLabel(" ",0x008080FF,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label2[playerid], playerid, 0.0, 0.0, 0.4);
  	}
	else if(pInfo[playerid][Admin] == 5)
	{
	  	label1[playerid] = Create3DTextLabel("[ Manager/OWNER ]", COLOR_RED,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
    }
    else if(pInfo[playerid][Admin] == 4)
	{
	  	label1[playerid] = Create3DTextLabel("[ Head Admin/BETA TESTER ]", COLOR_YELLOW,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
  	}
  	else if(pInfo[playerid][Admin] == 3)
  	{
	  	label1[playerid] = Create3DTextLabel("[ Leader ]", COLOR_LIGHTBLUE,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
  	}
	else if(pInfo[playerid][Admin] == 2)
	{
	  	label1[playerid] = Create3DTextLabel("[ Admin ]", COLOR_WHITE,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
  	}
  	else if(pInfo[playerid][Admin] == 1)
  	{
	  	label1[playerid] = Create3DTextLabel("[ Tester ]", COLOR_WHITE,30.0,40.0,50.0,40.0,0);
	  	Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
  	}
	return 1;
}


public OnPlayerSpawn(playerid)
{
	return 1;
}
#endif

if u found any probem plzz pm me the whole fix i m a beginer scripter soo sorry for mistakjes


hope u like it
Reply
#2

Thanks for this men !
+rep
Reply
#3

pf borring .. if i remove the admin level the label will still stay.
Reply
#4

It doesn't destroy the textlabel. Delete3DTextLabel is what you need.
Reply
#5

no
the admin lable will not stay when the database is refresed
Reply
#6

What if the admin wants to remove his tag above his head? Do you need to restart your server everytime to take effect of the changes?
Reply
#7

no man... alll he needs is relog .....AND THE THING THAT I MENTIONED IN THE DESCRIPTION IS THAT IT IS TOTALLLY MODIFYABLE SO U CAN ADD COMMANDS O REMOVE THE TAG ABOVE HIS HEAD
Reply
#8

Quote:
Originally Posted by PLAYHARD112
Посмотреть сообщение
no man... alll he needs is relog .....AND THE THING THAT I MENTIONED IN THE DESCRIPTION IS THAT IT IS TOTALLLY MODIFYABLE SO U CAN ADD COMMANDS O REMOVE THE TAG ABOVE HIS HEAD
Okay I understand now what you mean. I'm just curious to other players here, in case they want to remove the tag without coding by themselves.
Reply
#9

THNX GUYZZ THAT U LIKE MY FS
Reply
#10

error 017: undefined symbol "label2"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)