Raised This Month: $ Target: $400
 0% 

problem with if


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 12-16-2011 , 19:43   problem with if
Reply With Quote #1

here is the code
Code:
public client_putinserver(id) {
if(!get_pcvar_num(is_it_on) || !is_user_connected(id) || is_user_bot(id))
return PLUGIN_HANDLED
if(!access(id, ADMIN)) {
set_task(1.0, "EnableAntiCheat")

set_task(5.0, "input", id)
}
return PLUGIN_HANDLED
}
When im with nick "vvvv" - the anticheat kick me when not have immunity access, but when i change name and wait 1.0 seconds - anticheat kick me again.
Whats wrong ? How to check name change and recheck if when name is changed.
Thanks!
lqlqlq is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-16-2011 , 22:15   Re: problem with if
Reply With Quote #2

Try:

Change de is_it_on to pCvar_is_it_on
__________________
kramesa is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 12-16-2011 , 22:24   Re: problem with if
Reply With Quote #3

Quote:
Originally Posted by kramesa View Post
Try:

Change de is_it_on to pCvar_is_it_on
How can you even know how he called his pcvar?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-16-2011 , 22:37   Re: problem with if
Reply With Quote #4

Try:

PHP Code:
public client_putinserver(id
{
    if(!
get_pcvar_num(pcvar_is_it_on) || !is_user_connected(id) || is_user_bot(id))
    {
        return 
PLUGIN_HANDLED
    
}
    
    if(!
access(idADMIN)) 
    {
        
set_task(1.0"EnableAntiCheat")
        
        
set_task(5.0"input"id)
    }
    return 
PLUGIN_HANDLED

OBS: Change is_it_on to pcvar_is_it_on
__________________
kramesa is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-17-2011 , 01:32   Re: problem with if
Reply With Quote #5

Quote:
Originally Posted by kramesa View Post
OBS: Change is_it_on to pcvar_is_it_on
That won't change anything.
__________________
fysiks is offline
Old 12-17-2011, 03:00
lqlqlq
This message has been deleted by xPaw. Reason: No.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-17-2011 , 03:20   Re: problem with if
Reply With Quote #7

You do realize that that 1) that binding keys is not allowed here and 2) is the WORST "anti-cheat" ever created right?
__________________

Last edited by fysiks; 12-17-2011 at 03:23.
fysiks is offline
lqlqlq
Senior Member
Join Date: Jan 2008
Old 12-17-2011 , 03:26   Re: problem with if
Reply With Quote #8

Ok, thats is slowhack, but can you realize with menu to "yes" or "no" for choose to players ?
I'm newbie with pawn.
Its simple anticheat Im not finished yet, it takes some time to add some checks for cvar and more..
lqlqlq is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-17-2011 , 15:32   Re: problem with if
Reply With Quote #9

Quote:
Originally Posted by lqlqlq View Post
Its simple anticheat
It's not an anticheat at all. Slowhacking is not allowed on these forums regardless of your intentions.

I have every single one of those buttons bound/used for something and I don't cheat. You plugin would "detect" me as a "cheater".
__________________
fysiks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-17-2011 , 04:29   Re: problem with if
Reply With Quote #10

Quote:
Originally Posted by lqlqlq View Post
How to check name change and recheck if when name is changed.
FM_ClientUserInfoChanged.
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 12-17-2011 at 04:30.
Devil259 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 20:59.


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