Solved Sourcepawn Timers - Where am I wrong???

XTreme killer

Active member
RIS Admin
Content Writer
C++:
public OnClientPutInServer(int client)
{
    CreateTimer(5.0, Cheat_check, _,TIMER_REPEAT);
}

public Action Cheat_check (Handle:timer, int client, int args)
{
    QueryClientConVar(client, "sv_cheats", GetClientVarCheats);
    QueryClientConVar(client, "r_drawothermodels", GetClientVarWalls);
    QueryClientConVar(client, "host_timescale", GetClientVarTime);
    QueryClientConVar(client, "mat_wireframe", GetClientVarWire);
    QueryClientConVar(client, "r_drawparticles", GetClientVarParticle);
}
The Line :
CreateTimer(5.0, Cheat_check, _,TIMER_REPEAT);

has error:
error 100: function prototypes do not match

@Vertigo Can you fix this??
 

Vertigo

⍥????
Staff member
Administrator
Remove int args from public Action Cheat_check (Handle:timer, int client, int args)
 

Vertigo

⍥????
Staff member
Administrator
But why are you checking these cvars ?
Client can never use them unless server itself has set sv_cheats to 1.
 

XTreme killer

Active member
RIS Admin
Content Writer
But why are you checking these cvars ?
Client can never use them unless server itself has set sv_cheats to 1.
Engine.dll has some bugs which allows players to use cheat engine and use these commands for native wallhacks
 

Vertigo

⍥????
Staff member
Administrator
And what makes you think this will stop them.
If it was that easy to just query the cvars and kick/ban them, then there would be no cheaters.
The only way to stop it is to prevent the program on client side itself.
Which means they must install a program provided by you.
 

XTreme killer

Active member
RIS Admin
Content Writer
And what makes you think this will stop them.
If it was that easy to just query the cvars and kick/ban them, then there would be no cheaters.
The only way to stop it is to prevent the program on client side itself.
Which means they must install a program provided by you.
I can make a program but it is not at all guaranteed that the player will install it.
By making a plugin, I can at least try that someone is not using hacks in my server.
I know there are many ways to inject dll in clientmod.( One of way, is through CFF explorer and adding xyz.dll in table of inputsystem.dll in bin folder of Clientmod)
I and you also know that cheaters are not going to stop.
That doesn't mean that we will stop trying to stop them using hacks.
I am just trying my best from server-side.
 

Vertigo

⍥????
Staff member
Administrator
I understand what you are upto.
I am just pointing this is not the right way to deal with it.
Querying these cvars definitely not.
If you look at smac source code, it already does that whatever you are trying to do.
 

XTreme killer

Active member
RIS Admin
Content Writer
I understand what you are upto.
I am just pointing this is not the right way to deal with it.
Querying these cvars definitely not.
If you look at smac source code, it already does that whatever you are trying to do.
I understand your point of view.
I will not make this plugin.
 

Vertigo

⍥????
Staff member
Administrator
Anyway you can try different options if you want.
Trying to code something new is always fun. :)
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock