SA-MP Forums Archive
Administrator blablabla has logged in - 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)
+--- Thread: Administrator blablabla has logged in (/showthread.php?tid=524723)



Administrator blablabla has logged in - PowerF - 08.07.2014

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


Re: Administrator blablabla has logged in - PowerF - 08.07.2014

Please Someone help me


Re: Administrator blablabla has logged in - BroZeus - 08.07.2014

show your admin variables which store admin levels


Re: Administrator blablabla has logged in - PowerF - 08.07.2014

i use raven's roleplay


Re: Administrator blablabla has logged in - PowerF - 08.07.2014

please help me


Re: Administrator blablabla has logged in - FaZeRs - 08.07.2014

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.


Re: Administrator blablabla has logged in - Bingo - 08.07.2014

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.


Re: Administrator blablabla has logged in - PowerF - 11.07.2014

error


Re: Administrator blablabla has logged in - Pboachie - 11.07.2014

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


Re: Administrator blablabla has logged in - PowerF - 11.07.2014

Код:
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.