[Ajuda] /r
#12

Quote:
Originally Posted by DarthVeider
View Post
Tu usou "SendClientMessage", isso vai mandar a mensagem apenas pra quem usou o comando, por isso й "playerid", tem que usar "SendClientMessageForAll" que manda a mensagens para todos que forem PM.

Vк se dб aн, eu fiz pelo celular e nгo testei.
pawn Code:
CMD:r(playerid, params[])
{
if(Profissao[playerid] == 2 || Profissao[playerid] == 1 || Profissao[playerid] == 13 || Profissao[playerid] == 14 || Profissao[playerid] == 7 || Profissao[playerid] == 8)
{
new texto[128], Don[128];
if(sscanf(params, "s[128]", texto)) return SendClientMessage(playerid, -1,"{FF00FF}[PDE | COP]{FFFFFF} Use: /r [TEXTO]");
switch(Profissao[playerid])
{
case 1 .. 2:format(Don, sizeof Don, "{00FFFF}[Chat Policia Militar] %s diz: %s", GetPlayerNameEx(playerid), texto);
case 13 .. 14:format(Don, sizeof Don, "{2E8B57}[Chat Exercito] %s diz: %s", GetPlayerNameEx(playerid), texto);
}
SendClientMessageForAll(-1, Don);
}
else SendClientMessage(playerid, 0xFF0000AA, "{E32636}[PDE | INFO]{FFFFFF}  Voce Nao E De Nenhuma ORG.");
return true;
}
Nгo funcionou, agora quando o player digita aparece a mensagem pra todos, atй pra quem nгo e PM.
Reply


Messages In This Thread
/r - by hurubuh - 13.04.2019, 18:24
Re: /r - by DarthVeider - 13.04.2019, 20:00
Re: /r - by MultiKill - 13.04.2019, 20:09
Re: /r - by Don_Speed - 13.04.2019, 22:46
Re: /r - by FerrariL - 13.04.2019, 23:49
Re: /r - by DarthVeider - 14.04.2019, 01:35
Re: /r - by hurubuh - 14.04.2019, 15:18
Re: /r - by FerrariL - 14.04.2019, 15:50
Re: /r - by hurubuh - 14.04.2019, 15:58
Re: /r - by FerrariL - 14.04.2019, 16:13
Re: /r - by Psicotico - 14.04.2019, 17:21
Re: /r - by hurubuh - 15.04.2019, 21:15
Re: /r - by ipsLuan - 15.04.2019, 21:31
Re: /r - by DarthVeider - 15.04.2019, 23:10
Re: /r - by Don_Speed - 15.04.2019, 23:11
Re: /r - by DarthVeider - 15.04.2019, 23:18
Re: /r - by hurubuh - 16.04.2019, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)