Raised This Month: $ Target: $400
 0% 

Sockets - HLTV rcon. Possible?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
redmist
Member
Join Date: May 2004
Old 06-15-2004 , 10:55   Sockets - HLTV rcon. Possible?
Reply With Quote #1

I'm trying to do a sockets module equivalent of the udp HLTV rcon plugin. The code below results in a 'Invalid rcon challenge' error on the HLTV server. The old udp code is shown in the comments. My knowledge of challenge rcon is a bit limited - can anyone help?

Code:
new rcv[256],snd[256]
	new rconid[13]

	setc(snd,4,0xff) 
	copy(snd[4],255,"challenge rcon") 
	setc(snd[18],1,'^n') 
//	new chk = query_udp_msg(hltv_address,rcv,255,snd) 
	socket_send(hltv_address,snd,255)
	socket_recv(hltv_address,rcv,255)
	copy(rconid,12,rcv[15])
	replace(rconid,255,"^n","") 
	setc(snd,4,0xff) 
	format(snd[4],255,"rcon %s ^"%s^" %s ^n",rconid,hltv_pass,cmd)
//	send_udp_msg(hltv_address,snd)
	socket_send(hltv_address,snd,255)
redmist is offline
 



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 14:40.


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