[AJUDA] Mensagem ao entra no Sv
#5

pawn Code:
public OnPlayerConnect(playerid)
{
  new string[64], pName[MAX_PLAYER_NAME];
  GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  format(string,sizeof string,"%s has joined the server. Welcome!",pName);
  SendClientMessageToAll(0xFFFFFFAA,string);
  return 1;
}
e

pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
  new
    string[64],
    name[MAX_PLAYER_NAME];
  GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  switch(reason)
  {
    case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
    case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
    case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
  }
  SendClientMessageToAll(0xFFFFFFAA,string);
  return 1;
}
by: wiki
Reply


Messages In This Thread
[AJUDA] Mensagem ao entra no Sv - by brunogysin - 21.05.2010, 00:01
Re: [AJUDA] Mensagem ao entra no Sv - by Lipepva - 21.05.2010, 00:08
Re: [AJUDA] Mensagem ao entra no Sv - by V4mpiroDoidao - 21.05.2010, 00:10
Re: [AJUDA] Mensagem ao entra no Sv - by russo666 - 21.05.2010, 00:13
Re: [AJUDA] Mensagem ao entra no Sv - by ipsBruno - 21.05.2010, 00:30
Re: [AJUDA] Mensagem ao entra no Sv - by [NWD]Tweener_ - 21.05.2010, 01:29
Re: [AJUDA] Mensagem ao entra no Sv - by russo666 - 21.05.2010, 01:34
Re: [AJUDA] Mensagem ao entra no Sv - by [NWD]Tweener_ - 21.05.2010, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)