Leave/Join Admin messege - 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: Leave/Join Admin messege (
/showthread.php?tid=479969)
Leave/Join Admin messege -
maaz - 08.12.2013
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
Re: Leave/Join Admin messege -
***Niko*** - 08.12.2013
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;
}
}
Re: Leave/Join Admin messege -
maaz - 08.12.2013
Thanks btw can we make its color like
[Administrator]%s Has Joined [Server Name]
Re: Leave/Join Admin messege -
***Niko*** - 08.12.2013
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;
}
}
Re: Leave/Join Admin messege -
maaz - 08.12.2013
BTW thank you very much
Re: Leave/Join Admin messege -
***Niko*** - 08.12.2013
You are welcome