Raised This Month: $ Target: $400
 0% 

Need stock...or code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-19-2011 , 07:55   Need stock...or code
Reply With Quote #1

Need stock to check free slots or occupated slots on remote server using sockets
I need like this :

if (freeslots >=2 )
do something

if (total_players > 30 )
do something

In remote server ... xredirect is too complicated for me.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-19-2011 , 08:46   Re: Need stock...or code
Reply With Quote #2

http://developer.valvesoftware.com/w...eries#A2S_INFO
heres the query and replay format if you want to code it yourself
jimaway is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-19-2011 , 09:12   Re: Need stock...or code
Reply With Quote #3

Ill try , not sure if I can .(
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-19-2011 , 12:56   Re: Need stock...or code
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=142858
__________________
Bugsy is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-19-2011 , 13:30   Re: Need stock...or code
Reply With Quote #5

thanks I will look thru.

but whats wrong with this code

I cant send my data correctly


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include < server_comm >



public plugin_init() {
    
register_plugin("Advanced redirect"AMXX_VERSION_STR"idiot(((")
    
set_task(5.0,"MapLoaded",_,_,_,"b")
}


public 
MapLoaded()
{        
        new 
send_data get_maxplayers() - get_playersnum() 
        
        
scomm_sendf"loopback""%s"send_data)        
}


public 
scomm_receiveszData[ ], iLen )
{
    
log_amx"Received data: %s"szData );

str_to_num is useless . maxplayers is a number itself...what to do
Recieved data is : * empty or some funny symbols.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-19-2011 , 13:41   Re: Need stock...or code
Reply With Quote #6

forget

http://forums.alliedmods.net/showthread.php?t=142858


Amazing THINGGGGGGGGGGGG
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne 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 19:30.


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