SA-MP Forums Archive
how to make tag name for admin - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make tag name for admin (/showthread.php?tid=259133)



how to make tag name for admin - handerson - 03.06.2011

i want to make tag to admin

im using luxadmin sys,

pls how to make tag [GM] to my admins,,,

only for admin, if players use tag [GM] they will be kicked, pls tell me

pls pls pls


Re: how to make tag name for admin - grand.Theft.Otto - 03.06.2011

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
https://sampwiki.blast.hk/wiki/Create3DTextLabel

From SA-MP Wiki

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.

* Delete3DTextLabel: Delete a 3D text label.

* Attach3DTextLabelToPlayer: Attach a 3D text label to a player.

* Attach3DTextLabelToVehicle: Attach a 3D text label to a vehicle.

* Update3DTextLabelText: Change the text of a 3D text label.


* CreatePlayer3DTextLabel: Create A 3D text label for one player.

* DeletePlayer3DTextLabel: Delete a player's 3D text label.

* UpdatePlayer3DTextLabelText: Change the text of a player's 3D text label.


Re: how to make tag name for admin - ColdIce - 03.06.2011

AdminLabel[playerid] = Create3DTextLabel("Admin on duty\n Do NOT attack!",0xE60000FF,20.0,40.0,50.0,40.0,0,1);

Like this?


Re: how to make tag name for admin - handerson - 03.06.2011

i mean tag,
like [GM]admin, [GM]Xander..

can u help me


Re: how to make tag name for admin - sleepysnowflake - 03.06.2011

Well this might work :

pawn Код:
new aname[24];
new string[256];
GetPlayerName(playerid,aname,sizeof(aname));
format(string,sizeof(string),"[GM]%s",aname);
SetPlayerName(playerid,string);
@ColdIce: I belive that is ripped of my really small scirpt I have made for you!


Re: how to make tag name for admin - ColdIce - 03.06.2011

Nope


Re: how to make tag name for admin - handerson - 03.06.2011

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
Well this might work :

pawn Код:
new aname[24];
new string[256];
GetPlayerName(playerid,aname,sizeof(aname));
format(string,sizeof(string),"[GM]%s",aname);
SetPlayerName(playerid,string);
@ColdIce: I belive that is ripped of my really small scirpt I have made for you!
how to kick player who used [GM] if player is not admin team,


Re: how to make tag name for admin - AlternativeDC - 03.06.2011

if you use lux admin search for accinfo.
Код:
new aname[24];
new string[256];
GetPlayerName(playerid,aname,sizeof(aname));
format(string,sizeof(string),"[GM]%s",aname);
if (AccInfo[playerid][Level] >= 0)
Ban(playerid);
SetPlayerName(playerid,string);



Re: how to make tag name for admin - AlternativeDC - 03.06.2011

i think to helped you if
have errors post them to check and to fix.
enjoy.!


Re: how to make tag name for admin - handerson - 03.06.2011

Quote:
Originally Posted by AlternativeDC
Посмотреть сообщение
if you use lux admin search for accinfo.
Код:
new aname[24];
new string[256];
GetPlayerName(playerid,aname,sizeof(aname));
format(string,sizeof(string),"[GM]%s",aname);
if (AccInfo[playerid][Level] >= 0)
Ban(playerid);
SetPlayerName(playerid,string);
i mean if a normal player come in to server with [GM] tag, they will get kicked,

only admin can login to server with [GM] tag

do u understand,
sorry, but i need ur help