Everytime you change the color you send the event function:

Code:
//Do it on the player that changed the color!

//I used event number 20 for the change color event:
enet_svset_event(20,_str("change_color_event"));
enet_clset_event(20,_str("change_color_event"));

//do this for changing into yellow:
enet_clsend_event(20,_str("y"),-1);
//do this for changing into blue:
enet_clsend_event(20,_str("b"),-1);
//and so on.

//This function will be called on all participants when you use the enet_clsend_event(20,...); function:
function change_color_event(var sender, STRING* msg)
{
   if(str_cmp(msg,"y") == 1)
   {//yellow
   }
   if(str_cmp(msg,"b") == 1)
   {//blue
   }
   //and so on
}



Btw. you should read through the ANet HowTos of the manual and the 3d chat example tutorial, it explains everything you need for a multiplayer game with ANet.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version