SA-MP Forums Archive
[Ajuda] Ajuda nessa funзгo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda nessa funзгo (/showthread.php?tid=384979)



Ajuda nessa funзгo - smithz0r - 14.10.2012

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.


Re: Ajuda nessa funзгo - MatheusAlcapone - 14.10.2012

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


Re: Ajuda nessa funзгo - smithz0r - 14.10.2012

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?


Re: Ajuda nessa funзгo - .FuneraL. - 14.10.2012

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