26.12.2012, 09:42
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;
}
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;
}