//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
}