HELP Message : .... Has joined the server
#3

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;
}
Reply


Messages In This Thread
HELP Message : .... Has joined the server - by firemanjv - 17.12.2012, 17:21
Re: HELP Message : .... Has joined the server - by firemanjv - 26.12.2012, 09:38
Re: HELP Message : .... Has joined the server - by mineralo - 26.12.2012, 09:42
Re: HELP Message : .... Has joined the server - by Konstantinos - 26.12.2012, 09:43
Re: HELP Message : .... Has joined the server - by firemanjv - 26.12.2012, 09:48

Forum Jump:


Users browsing this thread: 2 Guest(s)