Administrator blablabla has logged in
#1

hey guys

i have a server
i want if administrator logged in says

Moderator ;';';'; has logged in
Server Owner blablalba has logged in

please how do i make it?
help me
Reply
#2

Please Someone help me
Reply
#3

show your admin variables which store admin levels
Reply
#4

i use raven's roleplay
Reply
#5

please help me
Reply
#6

Under
Quote:

public OnUserPlayerLogin(playerid,password[])

Add
Quote:

if (PlayerInfo[playerid][pAdmin] > 0)
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessageEx(playerid, COLOR_WHITE,"You are logged in as a Server Moderator.");
}
else
{
format(string2, sizeof(string2), "You are logged in as a Level %d Admin.",PlayerInfo[playerid][pAdmin]);
SendClientMessageEx(playerid, COLOR_WHITE,string2);
}

if(PlayerInfo[playerid][pAdmin] == 1)
{
format( string2, sizeof( string2 ), "%s has logged in as a Server Moderator.", GetPlayerNameEx( playerid ));
}
else
{
format( string2, sizeof( string2 ), "%s has logged in as a Level %d Admin.", GetPlayerNameEx( playerid ), PlayerInfo[playerid][pAdmin] );
}

foreach(Player, i)
{
if( PlayerInfo[i][pAdmin] >= 1337 )
{
if(PlayerInfo[i][pAdmin] >= PlayerInfo[playerid][pAdmin]) SendClientMessageEx(i, COLOR_WHITE, string2);
}
}

}

But this shows only for administrators.
Reply
#7

Quote:
Originally Posted by FaZeRs
Посмотреть сообщение
Under


Add


But this shows only for administrators.
Yes, This works for administrators only but you can also do for vip(s) or any donors if you have variables just replace
Код:
 if (PlayerInfo[playerid][pVip] > 0)
{
if(PlayerInfo[playerid][pVip] == 1)
Just an example, I never used ravens admin system.
Reply
#8

error
Reply
#9

Quote:
Originally Posted by PowerF
Посмотреть сообщение
error
Make sure all the variables provided to you match the variables you use. Also what is the error?
Reply
#10

Код:
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(4117) : error 017: undefined symbol "foreach"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(4119) : error 017: undefined symbol "playerid"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(4122) : error 017: undefined symbol "playerid"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(25647) : error 017: undefined symbol "SendClientMessageEx"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(25651) : error 017: undefined symbol "string2"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(25651) : error 017: undefined symbol "string2"
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(25651) : error 029: invalid expression, assumed zero
D:\Serial_Your Uninstaller PRO 7.5.2013.02 - www.bagas31.com\Administrator\GTA San Andreas\PLGR\gamemodes\larp.pwn(25651) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)