This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
faki
Senior Member
Join Date: Jul 2013
Old 05-03-2014 , 08:00   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1241

How to use orpheu to check client cvar on putinserver ? I dont want to check value, i want to check if player client have a cvar which is not default in game. (its injected cvar)
I have small list of cvar which is needed to be checked.

Last edited by faki; 05-03-2014 at 08:00.
faki is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-03-2014 , 09:13   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1242

why use Orpheu? Look for "query_client_cvar()" though u will need QCC2 ( client-side )

PHP Code:
// Dispatches a client cvar query
//  id: Player id
//  cvar: cvar name
//  resultFunc: public handler function
//  paramLen + params: optional array parameter
// resultFunc looks like:
//  public callbackCvarValue(id, const cvar[], const value[])
// or if you use the optional parameter:
//  public callbackCvarValue(id, const cvar[], const value[], const param[])
native query_client_cvar(id, const cvar[], const resultFunc[], paramlen=0, const params[] = ""); 

Last edited by souvikdas95; 05-03-2014 at 09:14.
souvikdas95 is offline
faki
Senior Member
Join Date: Jul 2013
Old 05-03-2014 , 09:21   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1243

I know for query_client_cvar, but is not working correctly for what i want and need a value for cvar checking.
I need a method that is not checking the value and only checking the cvar when player is connect or connected to server.
The other way is database with all client commands and compares if the client has any more (injected by other program) - kick the player.
If Orpheu cant handle this, and can with rage -OK, no problem.

Last edited by faki; 05-03-2014 at 09:23.
faki is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-03-2014 , 09:59   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1244

you don't make sense. The only reason query_client_cvar () won't work would be if clients are not compatible with QCC2. As far as I know all Steam Clients support it. Does that mean you are running a Non-Steam Server?
souvikdas95 is offline
faki
Senior Member
Join Date: Jul 2013
Old 05-03-2014 , 10:04   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1245

Ok, give me full code to check array of 15 cvars with query_client_cvar without checking their value.
faki is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-03-2014 , 10:31   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1246

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin "Custom Query Cvar" "1.0" "Souvik" );
}

public 
client_putinserver id 
{
    
set_task 2.0"delay_connect_query_cvar"id );
    return 
PLUGIN_CONTINUE
}

public 
delay_connect_query_cvar id )
{
    if ( !
is_user_bot id ) && is_user_connected id ) )
    {
        
query_client_cvar id "custom_cvar1" "custom_cvar_func" );
        
query_client_cvar id "custom_cvar2" "custom_cvar_func" );
        
query_client_cvar id "custom_cvar3" "custom_cvar_func" );
        
query_client_cvar id "custom_cvar4" "custom_cvar_func" );
        
query_client_cvar id "custom_cvar5" "custom_cvar_func" );
    }
}

public 
custom_cvar_func id, const szCvar[], const szValue[] ) 
{
    if ( !
equal szValue"Bad CVAR request" ) )
        
server_cmd "kick #%d ^"Bad CVAR Found^""get_user_userid id ) );


Last edited by souvikdas95; 05-03-2014 at 10:31.
souvikdas95 is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-03-2014 , 14:06   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1247

Quote:
Originally Posted by souvikdas95 View Post
you don't make sense. The only reason query_client_cvar () won't work would be if clients are not compatible with QCC2. As far as I know all Steam Clients support it. Does that mean you are running a Non-Steam Server?
doh. Everyone knows you run dproto/non-steam servers
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
souvikdas95
Senior Member
Join Date: Mar 2012
Old 05-03-2014 , 15:25   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1248

Quote:
Originally Posted by NiHiLaNTh View Post
doh. Everyone knows you run dproto/non-steam servers
Better mind your own words. I am not a non steam user or use any non steam server. Have no knowledge? Get it in ur dustbin. Or are you too hurt that you being a non steamer has been exposed already on this forum? You should be glad that you are still not banned.

QCC2 is a feature that only P48 Clients have. In earliar versions of CS, we did not have this. The only possibility of still not having it is because one uses non steam. Since he says he can't work it out, that suggested he's using Non Steam server. However he says then that he doesn't know how to use it. So, probably there was error in his code and I predict it was because he'd put it without the delay in client_putinserver(). That's why I wrote that code again.

No more discussion on this now unless you have proof before you speak.

Last edited by souvikdas95; 05-03-2014 at 15:55.
souvikdas95 is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 05-05-2014 , 12:49   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1249

Does any one have "Host_Status_f" updated signature for windows?
Thanks in advance.

ps. Making one thread with orpheu signatures would be way better than spamming this thread with such a requests.
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-05-2014 , 14:59   Re: Module: Orpheu (v2.5.1)
Reply With Quote #1250

Yeah, I know. Will create one later for all modules.

Code:
[0x55,0x8B,"*",0x81,"*","*",0x,"*","*","*",0xA1,"*","*","*","*",0x53,0x56,0x57,0xBF,"*","*","*","*",0x33,"*",0x8B,"*",0x3B,"*",0x89,"*","*",0x89,"*","*",0x89]
__________________
Arkshine 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 23:31.


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