SA-MP Forums Archive
[FilterScript] ADMIN LABEL FS :) - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] ADMIN LABEL FS :) (/showthread.php?tid=505375)



ADMIN LABEL FS :) - PLAYHARD112 - 08.04.2014

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


Re: ADMIN LABEL FS :) - ChuckyBabe - 08.04.2014

Thanks for this men !
+rep


Re: ADMIN LABEL FS :) - d0nTtoucH - 08.04.2014

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


Re: ADMIN LABEL FS :) - iBanner - 08.04.2014

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


Re: ADMIN LABEL FS :) - PLAYHARD112 - 08.04.2014

no
the admin lable will not stay when the database is refresed


Re: ADMIN LABEL FS :) - iBanner - 08.04.2014

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?


Re: ADMIN LABEL FS :) - PLAYHARD112 - 08.04.2014

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


Re: ADMIN LABEL FS :) - iBanner - 08.04.2014

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.


Re: ADMIN LABEL FS :) - PLAYHARD112 - 08.04.2014

THNX GUYZZ THAT U LIKE MY FS


Re: ADMIN LABEL FS :) - d0nTtoucH - 08.04.2014

error 017: undefined symbol "label2"