Radio. +1 -
HK - 11.02.2014
Код:
Код HTML:
CMD:radio(playerid, params[])
{
new string[128];
if(sscanf(params, "s[80]", params)) return SendClientMessage(playerid, -1, "USAGE: /radio [text]");
if(!PInfo[playerid][pCop]) return SendClientMessage(playerid, COLOR_RED, "Officers only.");
new name[24];
format(string, sizeof(string), "(Radio) %s: %s",PlayerName(playerid),params);
NearMessageSender(playerid, 7, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string), "[Radio] %s %s: %s, over.",copLevel(playerid), PlayerName(playerid),params);
foreach(Player, i)
{
if(PInfo[i][pCop])
{
SendClientMessage(i, COLOR_GREY, string);
}
}
return 1;
}
So, the main question is, how can I like make my nearmessagesender NOT visible for playerid? but visible for other players?
So like the playerid can only see the radio text once since he wrote something, so it wont show up twice?
Код HTML:
format(string, sizeof(string), "(Radio) %s: %s",PlayerName(playerid),params);
NearMessageSender(playerid, 7, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
Re: Radio. +1 -
HK - 11.02.2014
none, really?
Re: Radio. +1 -
ACI - 11.02.2014
So, your problem is that the message shows up twice? Or you want to make the message not visible for the player which he entered?
Edit: If you want your message not to be shown to "playerid" then you can post the code of your function.
Re: Radio. +1 -
HK - 11.02.2014
format(string, sizeof(string), "(Radio) %s: %s",PlayerName(playerid),params);
NearMessageSender(playerid, 7, string,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY ,COLOR_GREY);
This code should /NOT/ be shown for PLAYERID, but for others.
Re: Radio. +1 -
HK - 12.02.2014
PLEASE, someone help me

(
Re: Radio. +1 -
iGetty - 12.02.2014
Show us the NearMessageSender stock/public please.
Re: Radio. +1 -
EmilLykke - 26.02.2014
In the code, you put: NearMessageSender (blablabla).
Can I see that code?