[Ajuda] Ajuda nessa funзгo
#1

Minha ideia seria de abrir um racha para membros de x ORGs,
atй aн foi feito jб, agora eu queria saber como faz para mandar uma
mensagem somente para os membros dessas x ORGs

Mensagem:

Код:
format(string, 128, "Racha iniciado por alguma ORG corredora, digite /irracha para participar.");
SendClientMessageToAll(Cor, string);
Seria algo assim?

Код:
if(PlayerInfo[playerid][pMembro] == 21 && PlayerInfo[playerid][pLider] == 21
&& PlayerInfo[playerid][pMembro] == 26 && PlayerInfo[playerid][pLider] == 26)
{
      format(string, 128, "Racha iniciado por alguma ORG corredora, digite /irracha para participar.");
      SendClientMessageToAll(Cor, string);
}
OBS.: Nгo julga, porque nгo sei muito de pawno.
Reply
#2

SendClientMessageToAll iria mandar uma mensagem para todos do server sу um SendClientMessage funciona.
Reply
#3

Entгo no caso seria:

Код:
if(PlayerInfo[playerid][pMembro] == 21 && PlayerInfo[playerid][pLider] == 21
&& PlayerInfo[playerid][pMembro] == 26 && PlayerInfo[playerid][pLider] == 26)
{
      format(string, 128, "Racha iniciado por alguma ORG corredora, digite /irracha para participar.");
      SendClientMessage(Cor, string);
}
Mas mesmo pelo meu pouco conhecimento, acho que tem algo errado,
Daн seria:
Код:
SendClientMessage(algo a ver com playerid)
Ou nгo?
Reply
#4

PHP код:
for(new iMAX_PLAYERSi++)
{
      if(
PlayerInfo[i][pMembro] == 21 || PlayerInfo[i][pMembro] == 26 || PlayerInfo[i][pLider] == 21 || PlayerInfo[i][pLider] == 26)
      {
             
SendClientMessage(iCor"Racha iniciado por alguma ORG corredora, digite /irracha para participar.");
      }

Espero ter Ajudado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)