Leave/Join Admin messege
#1

Hello Samp Users
I want a Join and leave message when Admin join like this : [Admin]name Has Joined the Server
Please if someone have any knowledge on this please help me
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid)) // define your Admin enum i made it as pAdmin
    {
        new name[ 24 ], string[ 64 ];
        GetPlayerName( playerid, name, 24 );
        format( string, sizeof(string), "Administrator %s has joined [Server Name]!", name );
        SendClientMessageToAll(COLOR_WHITE,string);
        return 1;
    }
}
Reply
#3

Thanks btw can we make its color like
[Administrator]%s Has Joined [Server Name]
Reply
#4

There you go
pawn Код:
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid)) // define your Admin enum i made it as pAdmin
    {
        new name[ 24 ], string[ 64 ];
        GetPlayerName( playerid, name, 24 );
        format( string, sizeof(string), "{FF0000}[Administrator] %s {00FFFF}has joined {FF0000}[Server Name]!", name );
        SendClientMessageToAll(COLOR_WHITE,string);
        return 1;
    }
}
Reply
#5

BTW thank you very much
Reply
#6

You are welcome
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)