28.03.2009, 08:55
Hai there!
I'm wondering if somebody could help me with this. I want a teamchat and I tried creating one, but it epicly failed.
As you can see in the pic it shouldn't be like that. I want it to be ! <text>. (And you can't see you typed ! <text). And if possible something like (TEAM) <Name>: <Histext>.
This is what I have now already:
Thanks in advantage!
Bye
I'm wondering if somebody could help me with this. I want a teamchat and I tried creating one, but it epicly failed.
As you can see in the pic it shouldn't be like that. I want it to be ! <text>. (And you can't see you typed ! <text). And if possible something like (TEAM) <Name>: <Histext>.
This is what I have now already:
Код:
public OnPlayerText(playerid, text[]) { new string[256]; if(text[0] == '!') { for(new i = 0; i <= MAX_PLAYERS; i++ ) { if(gTeam[playerid] == gTeam[i]) format(string, sizeof(string), "(Team) %s", text[1]); SendPlayerMessageToPlayer(i, playerid, string); } return 0; } return 1; }
Bye