Bubble "Administrator" - 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: Bubble "Administrator" (
/showthread.php?tid=138442)
Bubble "Administrator" -
ShadowRazor - 01.04.2010
hello,
I want to add my server, that there is a Bubble over my head,
that is written Administrator.
How can I do that? But it only should be over my head.
Re: Bubble "Administrator" -
]Neo[ - 01.04.2010
Код:
public OnPlayerUpdate(playerid)
{
SetPlayerChatBubble(playerid,"Administrator", Color, 25, 10000)
return 1;
}
Re: Bubble "Administrator" -
ShadowRazor - 01.04.2010
thanks,
an how did i make that it only stay over my character?
Re: Bubble "Administrator" -
]Neo[ - 02.04.2010
Код:
on the top of your gamemode
new Admin,
and this in onplayercommandtext
if(strcmp("/admin", cmdtextm, true, 10) == 0)
{
if (IsPlayerAdmin(playerid) == 1) // for the Rcon admin
{
if (Admin == 0) return Admin = 1, SetTimer("OnPlayerUpdate", 10, 0); //starts the Admin Bubble
}
return 1;
}
and in OnPlayerUpdate
public OnPlayerUpdate(playerid)
{
if (Admin == 1)
{
SetPlayerChatBubble(playerid,"Administrator", Color, 25, 10000)
}
return 1;
}
i donґt tested it but i think it will work
Re: Bubble "Administrator" -
Headshot1108 - 02.04.2010
lol onplayerupdate is called thousands in a second.
Re: Bubble "Administrator" -
bauer123 - 02.04.2010
Neo.
Its possible to adjust it for my own admin sys too right-o?
Re: Bubble "Administrator" -
Krozz - 02.04.2010
I tried to do this but Cant seem to work
Re: Bubble "Administrator" -
bauer123 - 02.04.2010
Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Just create the label then use Attach3DTextLabelToPlayer, no need for OnPlayerUpdate
Edit: for your other question, just add the script into the admin system you are using and put the admin level variable in there, could be tricky if you are using a complex admin system but try and work it out :P
|
I made my own register+login+rank system+admin system
Isnt rly complex just kinda alot of codes