Raised This Month: $ Target: $400
 0% 

Sockets - HLTV rcon. Possible?


Post New Thread Reply   
 
Thread Tools Display Modes
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
rompom7
Senior Member
Join Date: May 2004
Old 07-12-2004 , 06:48  
Reply With Quote #2

I also need help, I am converting a AMX plugin and it uses the following functions currently not supported by AMX-X: -

Quote:
error 017: undefined symbol "set_iaddress"
error 017: undefined symbol "query_udp_msg"
error 017: undefined symbol "send_udp_msg"
Thanks all!
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-12-2004 , 19:49  
Reply With Quote #3

redmist, can you find anything about how to encode it? like google? HLSDK?

rompom7, stop hijacking threads.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
rompom7
Senior Member
Join Date: May 2004
Old 07-13-2004 , 03:37  
Reply With Quote #4

I wasn't hijacking. If you looked closely you would see that redmist also needs information on those functions

Quote:
Code:
//   new chk = query_udp_msg(hltv_address,rcv,255,snd)
//   send_udp_msg(hltv_address,snd)
Its not hijacking if your seeking the same information.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 07-13-2004 , 06:01  
Reply With Quote #5

Quote:
Originally Posted by rompom7
I also need help, I am converting a AMX plugin and it uses the following functions currently not supported by AMX-X: -

Quote:
error 017: undefined symbol "set_iaddress"
error 017: undefined symbol "query_udp_msg"
error 017: undefined symbol "send_udp_msg"
Thanks all!
UDP is not supported !
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
Downtown1
Veteran Member
Join Date: Mar 2004
Old 07-13-2004 , 12:02  
Reply With Quote #6

Yeah it is, you just have to use the UDP in the sockets module .
Downtown1 is offline
rompom7
Senior Member
Join Date: May 2004
Old 07-14-2004 , 04:04  
Reply With Quote #7

Downtown1, can you please explain how to use the functions?
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
sanaell
Senior Member
Join Date: May 2004
Location: SamutPrakarn Thailand
Old 07-14-2004 , 06:55  
Reply With Quote #8

Quote:
Originally Posted by rompom7
Downtown1, can you please explain how to use the functions?
The UDP module EXIST ? ( i believe not)
__________________
[email protected]
The Source of Pain is the Pain of Source
sanaell is offline
Send a message via MSN to sanaell
rompom7
Senior Member
Join Date: May 2004
Old 07-14-2004 , 08:25  
Reply With Quote #9

Sanaell, why can't you understand what I am asking.

Quote:
Downtown1 wrote: -
Yeah it is, you just have to use the UDP in the sockets module
So I wrote

Quote:
rompom7 wrote: -
Downtown1, can you please explain how to use the functions?
How does that not make sence? Stop being so arrogant and sarcastic.
__________________
Forgive your enimies, but never forget their name.
rompom7 is offline
Send a message via MSN to rompom7
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 14:40.


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