26.04.2012, 16:12
Quote:
this is nice and this will be may be more accurate ![]() A Question: Can i use it to retrieve info customly e.g. a command /getloc <playerid> and get his ip in command and use it some how ? or it works only in OnPlayerConnect? i mean if there be stock or something will make this more cool :/ EDIT: i trying it now , but its no working O.o |
You could also make that command yourself with the callback provided, just store the country/city in an array, and have a function return it. (or just use the var in the command)
If i added a function to get the players country, people would more than likely use it in OnPlayerConnect and it wouldn't work. I thought a callback would be the simplest way. If there was a way for me to get the HTTP response instantly i would have added more funcs.
Thanks all for positive feedback.



this is nice and this will be may be more accurate 