HELP Message : .... Has joined the server - 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: HELP Message : .... Has joined the server (
/showthread.php?tid=400250)
HELP Message : .... Has joined the server -
firemanjv - 17.12.2012
How do i make a message
like
Jack_Harrison (id:1) Has Joined The Server
And were do i need to put it ??
Re: HELP Message : .... Has joined the server -
firemanjv - 26.12.2012
No one
Re: HELP Message : .... Has joined the server -
mineralo - 26.12.2012
pawn Код:
public OnPlayerConnect(playerid)
{
new str[256],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
format(str,256,"( ! ) %s Has Joined Server !",name);
SendClientMessageToAll(-1,str);
return 1;
}
and for disconnect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new name[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"( TimeOut ) %s left the server !",name);
case 1: format(string,sizeof string,"( Quit ) %s left the server !",name);
case 2: format(string,sizeof string,"( Kick/Ban ) %s left the server !",name);
}
SendClientMessageToAll(-1,string);
return 1;
}
Re: HELP Message : .... Has joined the server -
Konstantinos - 26.12.2012
pawn Код:
public OnPlayerConnect( playerid )
{
new
string[ 64 ],
name[ MAX_PLAYER_NAME ]
;
GetPlayerName( playerid, name, MAX_PLAYER_NAME );
format( string, sizeof( string ), "%s (id:%d) Has Joined The Server", name, playerid );
SendClientMessageToAll( 0xFFFF00FF, string );
return 1;
}
Re: HELP Message : .... Has joined the server -
firemanjv - 26.12.2012
thx This worked