Posted By: indiGLOW
Server > Unique Client - [Help] - 08/18/08 20:41
I am having some difficulty using 'SEND_STRING_TO', mostly it appears to be establishing correct pointers/handles when entities are created. i.e player1 = client1, player2 = client2, etc...
I am trying to create a server side array of all currently connected players, pointers to each players master entity, and use this to send strings to individual clients.
Setting up this part of MP is really busting my brain, and after 2 weeks of trying to crack it, I am out of ideas...
Please could someone demonstrate how I create an entity on a client & server using ent_create, and then send messages to that client specifically from the server; Without the message going to all clients.
I believe SEND_STRING_TO(entpointer, stringtosend) should do the trick, but I just can't seem to get entpointer correct.
Any help, even examples of code would be really helpful. TIA
note: Running A6 Pro.
I am trying to create a server side array of all currently connected players, pointers to each players master entity, and use this to send strings to individual clients.
Setting up this part of MP is really busting my brain, and after 2 weeks of trying to crack it, I am out of ideas...
Please could someone demonstrate how I create an entity on a client & server using ent_create, and then send messages to that client specifically from the server; Without the message going to all clients.
I believe SEND_STRING_TO(entpointer, stringtosend) should do the trick, but I just can't seem to get entpointer correct.
Any help, even examples of code would be really helpful. TIA
note: Running A6 Pro.