General > Developers Corner
Call halo.add in ulx?
Aaron113:
You would have to use the net library (mentioned above) to send the list of entities to the client. Then you can just check on the client if any entities exist in a table, or something along the lines of that, and draw the halos if it exists. You would either have to use net.WriteEntity or net.WriteTable, whichever you prefer.
So in the client you would have to receive the net message and add the players to a clientside table that you would check in the halo hook. In the server, you would send all clients the entities probably within the command itself. Keep in mind that at some point you would have to disabled the halo effect for the player.
I'm trying to avoid doing the work for you, as you will never learn anything if you don't do it yourself.
EDIT: Try and if you still can't figure it out, I can give you a quick example.
Aharon Tager:
Thanks so much, I really appreciate you not just giving me a finished code I just never tried to do client and server stuff in the same script besides for including files for weapons
Aharon Tager:
Can you add me on steam and help out a little, I'm finding it hard to use the net libraries and make it work
Aaron113:
http://steamcommunity.com/id/aaron113/
Navigation
[0] Message Index
[*] Previous page
Go to full version