[AJUDA] Alguem ajuda ai plis
#1

Alguem me ajuda criar um sistema que aparece assim Ex : [
Palhaзo_loko [ID:0] acabou de entrar!
Palhaзo_loko [ID:0] Saiu do servidor!

Tbm como colocar assim encima do player em textlabel a conversa dele! e aparece tbm se ele й Super-Vip,Vip - normal,player free ,se a pessoal й admin etc.



Vlw pessoal!
Reply
#2

pawn Код:
new String[25];
format(String,sizeof(String)," %s[%i] Acabou de entrar",GetPlayerName(sizeof(playerid));,playerid);
SendClientMessage(playerid,COR,String);
Reply
#3

Код:
new String[25];
format(String,sizeof(String)," %s[%i] Acabou de entrar",GetPlayerName(sizeof(playerid));,playerid);
SendClientMessage(playerid,COR,String);
Onde eu coloco isso ? no comeзo do gm ?
Reply
#4

pawn Код:
public OnPlayerConnect(playerid)
{
new String[25];
format(String,sizeof(String)," %s[%i] Acabou de entrar",GetPlayerName(sizeof(playerid));,playerid);
SendClientMessage(playerid,COR,String);
return 1;
}

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new pName[MAX_PLAYER_NAME];
    new string[566];
    GetPlayerName(playerid, pName, sizeof(pName));
    switch(reason)
    {
        case 0: format(string, sizeof(string), "%s Saiu Do Servidor. (Poblemas na Conexгo)", pName);
        case 1: format(string, sizeof(string), "%s Saiu Do Servidor. (Resolveu Sair)", pName);
        case 2: format(string, sizeof(string), "%s Saiu Do Servidor. (Kickado/Banido)", pName);
    }
   SendClientMessagetoAll(COR,string);
 return 1;
}
[/pawn]
Reply
#5

--' , ainda n conseguir colocar !
Reply
#6

string[566] por string[85]
Reply
#7

ainda n ! me ajuda entгo colocar chat em textlabel
Reply
#8

public OnPlayerConnect(playerid)
Код:
public OnPlayerConnect(playerid)
{
  new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "%s logou no servidor", pname);
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
Код:
public OnPlayerDisconnect(playerid, reason)
{
  new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  switch(reason)
  {
    case 0: format(string, sizeof(string), "%s saiu do servidor (Crash/Conexгo)", pname);
    case 1: format(string, sizeof(string), "%s saiu do servidor. (Conta Prуpia)", pname);
    case 2: format(string, sizeof(string), "%s fez merda e saiu do servidor. (Kickado/Banido)", pname);
  }
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)