Raised This Month: $ Target: $400
 0% 

detecting server operating system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 01-11-2015 , 10:25   detecting server operating system
Reply With Quote #1

Is there any amxx method of detecting the operating system of the server?
No need for specific stuff, just need to be able to differentiate between linux and windows


if nothing better is posted then I'll just fileexists .so and .dll and go from there
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-11-2015 , 10:29   Re: detecting server operating system
Reply With Quote #2

https://www.amxmodx.org/api/amxmodx/is_linux_server
klippy is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 01-11-2015 , 10:31   Re: detecting server operating system
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post


thanks for pointing me in the right direction tho, https://translate.google.ro/translat...-text=&act=url
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 01-11-2015 at 10:32.
aron9forever is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-11-2015 , 12:46   Re: detecting server operating system
Reply With Quote #4

Quote:
Originally Posted by aron9forever View Post
Well, I have no idea about that, it loads perfectly fine for me. It is AMXX official documentation site.
You're welcome.
klippy is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 01-11-2015 , 18:38   Re: detecting server operating system
Reply With Quote #5

Quote:
Originally Posted by KliPPy View Post
Well, I have no idea about that, it loads perfectly fine for me. It is AMXX official documentation site.
You're welcome.
changed https to http and worked
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode