Admin buble
#1

I cant find this script and i dont know make it..
Every admin have over hes head like "Admin level 1"
"Admin level 2"....
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerChatBubble
Reply
#3

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
Reply
#4

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..
Reply
#5

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
Reply
#6

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.

Reply
#7

try attachplayertexttoplayer
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)