Admin joining message
#9

Quote:
Originally Posted by GTLS
View Post
have you tried:
Code:
if(PlayerInfo[i][pAdmin] >= 1)
{
format(string,sizeof(string),"* Administrator KillerDVX has joined the server");
	SendClientMessageToAll(COLOR_DEADCONNECT,string);
}
EDIT: here's what i use in my server Dont forget to rep++ me if i helped!
Code:
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);
			    }
			}

		}
pawn Code:
if(code to check if the player is an admin)
{
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s(%d) vient de rejoindre {KFX} Survivants vs Zombies.", pname, playerid);
    SendClientMessageToAll(COLOR_DEADCONNECT, string);
}
else
{
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "* %s(%d) vient de rejoindre {KFX} Survivants vs Zombies.", pname, playerid);
    SendClientMessageToAll(COLOR_DEADCONNECT, string);
}
Reply


Messages In This Thread
Admin joining message - by KillerDVX - 07.06.2015, 09:17
Re: Admin joining message - by GTLS - 07.06.2015, 09:21
Re: Admin joining message - by JaydenJason - 07.06.2015, 09:26
Re: Admin joining message - by GTLS - 07.06.2015, 09:30
Re: Admin joining message - by dionisak0s - 07.06.2015, 09:30
Re: Admin joining message - by GTLS - 07.06.2015, 09:32
Re: Admin joining message - by NoDi522 - 07.06.2015, 09:34
Re : Admin joining message - by KillerDVX - 07.06.2015, 09:34
Re: Admin joining message - by dionisak0s - 07.06.2015, 09:35
Re: Re : Admin joining message - by GTLS - 07.06.2015, 09:38

Forum Jump:


Users browsing this thread: 4 Guest(s)