AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SV_Rcon not being called? (https://forums.alliedmods.net/showthread.php?t=318084)

AmXDusT 08-13-2019 13:52

SV_Rcon not being called?
 
1 Attachment(s)
Hi, not sure if this is the right place.
I'm using orpheu v2.6.3 and I'm trying to use the SV_Rcon function whenever some user uses rcon in the server. While in windows it seems to work, on linux it doesn't, neither in 1.8.2 nor 1.8.3.
Idk if it's a signature problem since the linux value is always "SV_Rcon".
I use the SV_Rcon_Validate too in the same plugin/server and that one works though.
PHP Code:

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon"), "On_Rcon_Pre"OrpheuHookPre)
}
public 
On_Rcon_Pre(p_Address)
{
    
//client_print(0, print_chat, "asdasdasdadadads")
    
g_Address p_Address



DruGzOG 08-14-2019 22:27

Re: SV_Rcon not being called?
 
I believe the signatures for linux are a bit outdated. Could explain why it does not work.

AmXDusT 08-17-2019 22:28

Re: SV_Rcon not being called?
 
Seems so weird though. Would anyone try it with that signature on linux?
Just the client_print to see if it works.

I checked the thread on how to make a signature but I didn't understand much of it. is there anywhere where I can request the signature to be updated or anyone that has a sv_rcon signature that works?

DarthMan 08-18-2019 05:29

Re: SV_Rcon not being called?
 
Quote:

Originally Posted by AmXDusT (Post 2663649)
Seems so weird though. Would anyone try it with that signature on linux?
Just the client_print to see if it works.

I checked the thread on how to make a signature but I didn't understand much of it. is there anywhere where I can request the signature to be updated or anyone that has a sv_rcon signature that works?

For HLDS:

Code:

{
    "name" : "SV_Rcon",
    "library" : "engine",
    "arguments" :
    [
        {
            "type" : "pointer"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
            "value" : [0x55,0x8B,"*",0x81,"*","*","*","*","*",0x53,0x56,0x57,0xE8,"*","*","*","*",0x8B,"*",0x68,"*","*","*","*",0x89]
        },
        {
            "os" : "linux",
            "value" : "SV_Rcon"
        }
    ]
}

For REHLDS:

Code:

{
    "name" : "SV_Rcon",
    "library" : "engine",
    "arguments" :
    [
        {
            "type" : "pointer"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
            "value" : [0x55,0x8B,"*",0x81,"*","*","*","*","*",0x56,0x57,0xE8,"*","*","*","*",0x68,"*","*","*","*",0x8B,"*",0xE8]
        },
        {
            "os" : "linux",
            "value" : "SV_Rcon"
        }
    ]
}


HamletEagle 08-18-2019 07:12

Re: SV_Rcon not being called?
 
His signature file was correct, at least for linux. This is not the issue.

Mind telling us your hlds version? Are you sure you had the debug print enabled in linux?

AmXDusT 08-18-2019 15:22

Re: SV_Rcon not being called?
 
Hi, yeah I'm sure I had the debug on. I've edited my code multiple times trying to find a solution. the one I posted is just the part not working and I'm sure the rest works.
As I said, on Windows, the same plugin works flawlessly while on Linux nope (just the sv_rcon function isn't called).

Hlds build: 8196 (of 3rd April 2019)
Amxx: 1.9.0.5234

DarthMan 08-18-2019 17:28

Re: SV_Rcon not being called?
 
Quote:

Originally Posted by HamletEagle (Post 2663669)
His signature file was correct, at least for linux. This is not the issue.

Mind telling us your hlds version? Are you sure you had the debug print enabled in linux?

Ah, so he was using Linux. My bad ...


All times are GMT -4. The time now is 17:19.

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