Write it like that:

Code:

function main()
{
level_load(Strategy_wmb);
while(connection == 0) {wait(1);}
wait(1);
Mouse_movement(); //Start the function, which controls the camera movement
}


function Mouse_movement()
{
.
.
.
}




Each PC which enters the session starts the function Mouse_movement().


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