With the help of AUM 77 multiplayer code I finally managed to get it working and bypassing the need to use waits in the gun_missile code. Tip for others who have the same problem as I had; take a look at how AUM 77 does it and don't forget to send the pointer for the client player properly to the server.