Radio. +1
#1

Код:
Код 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);
Reply
#2

none, really?
Reply
#3

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.
Reply
#4

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.
Reply
#5

PLEASE, someone help me (
Reply
#6

Show us the NearMessageSender stock/public please.
Reply
#7

In the code, you put: NearMessageSender (blablabla).


Can I see that code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)