Admin buble - 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: Admin buble (
/showthread.php?tid=122661)
Admin buble -
maltheus. - 22.01.2010
I cant find this script and i dont know make it..
Every admin have over hes head like "Admin level 1"
"Admin level 2"....
Re: Admin buble -
kmzr - 23.01.2010
https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Re: Admin buble -
TheNotorius - 23.01.2010
Here is a good example:
pawn Код:
public OnPlayerText(playerid, text[])
{
if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
{
SetPlayerChatBubble(playerid, "Admin Level 5 (Head Admin)", 0xFF0000FF, 100.0, 10000);
}
if (AccountInfo[playerid][AdminLevel] >= 4 || IsPlayerAdmin(playerid))
{
SetPlayerChatBubble(playerid, "Admin Level 4", 0xFF0000FF, 100.0, 10000);
}
if (AccountInfo[playerid][AdminLevel] >= 3 || IsPlayerAdmin(playerid))
{
SetPlayerChatBubble(playerid, "Admin Level 3", 0xFF0000FF, 100.0, 10000);
}
if (AccountInfo[playerid][AdminLevel] >= 2 || IsPlayerAdmin(playerid))
{
SetPlayerChatBubble(playerid, "Admin Level 2", 0xFF0000FF, 100.0, 10000);
}
if (AccountInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid))
{
SetPlayerChatBubble(playerid, "Admin Level 1", 0xFF0000FF, 100.0, 10000);
}
return 1;
}
Thats What i have in my script It Depends on What Admin Script Your Using
Re: Admin buble -
Norn - 23.01.2010
Quote:
Originally Posted by ╚»★«[LvC
Lucifier»★«╝ ]
Here is a good example:
pawn Код:
public OnPlayerText(playerid, text[]) { if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 5 (Head Admin)", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 4 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 4", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 3 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 3", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 2 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 2", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 1", 0xFF0000FF, 100.0, 10000); } return 1; }
Thats What i have in my script It Depends on What Admin Script Your Using
|
Then it's setting the bubble everytime they talk.. Just have it set the bubble when they login, and if promoted/demoted..
Re: Admin buble -
TheNotorius - 23.01.2010
Quote:
Originally Posted by Norn
Quote:
Originally Posted by ╚»★«[LvC
Lucifier»★«╝ ]
Here is a good example:
pawn Код:
public OnPlayerText(playerid, text[]) { if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 5 (Head Admin)", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 4 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 4", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 3 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 3", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 2 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 2", 0xFF0000FF, 100.0, 10000); } if (AccountInfo[playerid][AdminLevel] >= 1 || IsPlayerAdmin(playerid)) { SetPlayerChatBubble(playerid, "Admin Level 1", 0xFF0000FF, 100.0, 10000); } return 1; }
Thats What i have in my script It Depends on What Admin Script Your Using
|
Then it's setting the bubble everytime they talk.. Just have it set the bubble when they login, and if promoted/demoted..
|
Hmm i Guess Your Right, My Mistake
Re: Admin buble -
maltheus. - 23.01.2010
Quote:
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(970) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(974) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(97 : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(982) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(986) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(992) : warning 225: unreachable code
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(992) : warning 217: loose indentation
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(1056) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
|
Re: Admin buble -
bluray - 23.01.2010
try attachplayertexttoplayer
Re: Admin buble -
TheNotorius - 24.01.2010
Quote:
Originally Posted by [FG
otto ]
Quote:
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(970) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(974) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(97 : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(982) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(986) : error 017: undefined symbol "AdminLevel"
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(992) : warning 225: unreachable code
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(992) : warning 217: loose indentation
C:\DOCUME~1\otto\Desktop\LADMIN~1.PWN(1056) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
|
|
It Depends On What Admin Filetscript Your Using