View Single Post
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 02-01-2021 , 02:46   Re: Communication between AMXX and Python using sockets
Reply With Quote #3

I'm not sure if what you're doing is wrong either. Maybe that's how it works. Servers use the default 127.0.0.1 and desktop computers use their own ip which is assigned from the router since there could be serveral machines operating and localhost wouldn't be ideal in that case. You can port this to any computer languange that supports sockets, well mostly all of them.
One thing missing is that I rushed to post the script without making it so players can get specific results, such as showing their local wether a second or two later when they join the game.
__________________
Relaxing is offline