AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sockets - HLTV rcon. Possible? (https://forums.alliedmods.net/showthread.php?t=2736)

redmist 06-15-2004 10:55

Sockets - HLTV rcon. Possible?
 
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)


rompom7 07-12-2004 06:48

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!

devicenull 07-12-2004 19:49

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

rompom7, stop hijacking threads.

rompom7 07-13-2004 03:37

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.

sanaell 07-13-2004 06:01

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 !

Downtown1 07-13-2004 12:02

Yeah it is, you just have to use the UDP in the sockets module :wink:.

rompom7 07-14-2004 04:04

Downtown1, can you please explain how to use the functions?

sanaell 07-14-2004 06:55

Quote:

Originally Posted by rompom7
Downtown1, can you please explain how to use the functions?

The UDP module EXIST ? ( i believe not)

rompom7 07-14-2004 08:25

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 :wink:
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.


All times are GMT -4. The time now is 14:40.

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