chat help.
#1

Okay i want to limit the chat radius in OnPlayerText. I have used LimitGlobalChatRadius, but i want the players to chat in their team colors, Swat player :

Coole210: Blablabla

The reason i want this in OnPlayerText because i am making a clan registration. I got the loading and saving but not commands because i need the players to chat in their team colors + tag without having to add for example [BLA] to their name. You enter GM and as Coole210 but when you chat or shout it says [BLA]Coole210: blablabla
Reply
#2

Search for ProxDetector.
Then format your text string: format(string, sizeof(string), "* [TAG]%s: %s", playername, text);
Reply
#3

I tried prox detector, it worked but it sends 2 messages!
Reply
#4

if you chat than you're automatticly youre teamcolor if your defined it well?
Reply
#5

Quote:
Originally Posted by coole210
I tried prox detector, it worked but it sends 2 messages!
You need to return 0 at OnPlayerText.
Reply
#6

I return 0; but still 2 messages !

pawn Код:
new string[128],name[17];
  GetPlayerName(playerid,name,sizeof(name));
    if(gTeam[playerid] == TEAM_POLICE)
    {
    format(string,sizeof(string),"%s: %s",name,text);
    ProxDetector(15.0,playerid,string,TEAM_POLICE_COLOR,TEAM_POLICE_COLOR,TEAM_POLICE_COLOR,TEAM_POLICE_COLOR,TEAM_POLICE_COLOR);
    return 1;
    }
Whats wrong with that?
Reply
#7

Nobody has an answer? I've seen this many times, just can't figure it out
Reply
#8

maybve you can change the format in a SendClientMessage?


SendClientMessage(playerid,0xAA3333AA,string[128]);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)