27.06. today i was able to implent a functionality like in most mmorpgs or rts games where you can use /w name text or /a text. so in short you can whisper to other players only, talk to your team only or talk to all players on the server.

what i do is check the string with:

if(str_cmpni(str_sendchat,"/a ")) // we got a broadcast incoming -> display it and send to clients

then its like locoweed code works. its all based on some string manipulation. so far it works for /a perfectly. tomorrow ill add /w for whisper and maybe /t for the teamsay.

i planned that i send the messages to all clients like "/w namefrom nameto text" and only display the text if nameto is equal player_name.
so again locoweeds chat skeleton is used here.

i realised that some string functions like str_getnextword and so on would be useful. but right now iam to lazy to write them for the little string manipulation i do