Raised This Month: $12 Target: $400
 3% 

missed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
007asha
Member
Join Date: Mar 2010
Old 09-09-2010 , 13:55   missed
Reply With Quote #1

missed

Last edited by 007asha; 10-18-2016 at 05:28.
007asha is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 09-09-2010 , 13:58   Re: Block fullupdate
Reply With Quote #2

Quote:
Originally Posted by 007asha View Post
It will block demo recording...
where u got this information ?

we block in some plugins fullupdate too and demo recording
is able, no block of them.
platzpatrone is offline
Old 09-09-2010, 14:00
007asha
This message has been deleted by 007asha.
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 09-09-2010 , 14:07   Re: Block fullupdate
Reply With Quote #3

got this from AMX Super and using it in own plugins:

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("fullupdate","fullupdate")
    
}

public 
fullupdate(id) {
    return 
PLUGIN_HANDLED_MAIN

platzpatrone is offline
Old 09-09-2010, 14:35
007asha
This message has been deleted by 007asha.
pike
Junior Member
Join Date: Jun 2009
Old 09-11-2010 , 02:22   Re: Block fullupdate
Reply With Quote #4

It will block demo recording.
Quote:
Originally Posted by platzpatrone View Post
got this from AMX Super and using it in own plugins:

PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("fullupdate","fullupdate")
    
}

public 
fullupdate(id) {
    return 
PLUGIN_HANDLED_MAIN

It does not block a demo recording and protects from a spam command fullupdate
PHP Code:
#define PLUGIN "Anti Fullupdate Spam"
#define VERSION "1.3"
#define AUTHOR "Pike"

new floodcounter[33]

public 
plugin_init()
    {
    
register_clcmd("fullupdate","fullupdate")    
    }
    
public 
fullupdate(id)
{
    
floodcounter[id]++

    if(
floodcounter[id]==4)
        {
            
        
hackDetected(id)
    }
    return 
PLUGIN_HANDLED
}

public 
client_connect(id)
{
        
floodcounter[id] = 0
}    
 public 
hackDetected(id)
{
    new 
name[32], ip[32], authid[32]
    
get_user_name(idname31)
    
get_user_ip(idip321)
    
get_user_authid(idauthid31)
    
    
server_cmd("kick #%d ^"Using spam command^""get_user_userid(id))
        
log_amx("^"%s^"<%s> %s Using fullupdate spam command"nameauthidip)


Last edited by pike; 09-11-2010 at 02:26.
pike is offline
visar1
Member
Join Date: Nov 2009
Old 09-11-2010 , 02:28   Re: Block fullupdate
Reply With Quote #5

what is fullupdate comand why need to block :S
visar1 is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 09-11-2010 , 05:36   Re: Block fullupdate
Reply With Quote #6

Quote:
Originally Posted by pike View Post
It will block demo recording.

It does not block a demo recording and protects from a spam command fullupdate
PHP Code:
#define PLUGIN "Anti Fullupdate Spam"
#define VERSION "1.3"
#define AUTHOR "Pike"

new floodcounter[33]

public 
plugin_init()
    {
    
register_clcmd("fullupdate","fullupdate")    
    }
    
public 
fullupdate(id)
{
    
floodcounter[id]++

    if(
floodcounter[id]==4)
        {
            
        
hackDetected(id)
    }
    return 
PLUGIN_HANDLED
}

public 
client_connect(id)
{
        
floodcounter[id] = 0
}    
 public 
hackDetected(id)
{
    new 
name[32], ip[32], authid[32]
    
get_user_name(idname31)
    
get_user_ip(idip321)
    
get_user_authid(idauthid31)
    
    
server_cmd("kick #%d ^"Using spam command^""get_user_userid(id))
        
log_amx("^"%s^"<%s> %s Using fullupdate spam command"nameauthidip)

What exactly is your post about or what are you trying to say.
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-11-2010 , 05:39   Re: Block fullupdate
Reply With Quote #7

fullupdate cmd already has a cool down to prevent spam, player offset m_flNextFullUpdateTime is 614 (thanks arkshine) and cooldown is 0.6 sec, if you want to modify the cooldown, just play with this offset.

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.1"
#define PLUGIN "FullUpdate Delay"

#define XO_PLAYER 5
#define m_flNextFullUpdateTime 614

new g_pCvarFullUpdateCoolDown

public plugin_init()
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")

    
g_pCvarFullUpdateCoolDown register_cvar("amx_fullupdate_mindelay""1.5")

    
register_forward(FM_ClientCommand"ClientCommand_Post"true)
}

public 
ClientCommand_Post(id)
{
    new 
szCommand[12]
    if( 
equali(szCommand"fullupdate") )
    {
        
set_pdata_float(idm_flNextFullUpdateTimeget_gametime() + get_pcvar_float(g_pCvarFullUpdateCoolDown), XO_PLAYER)
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 09-11-2010 at 05:45.
ConnorMcLeod is offline
Old 09-11-2010, 08:06
007asha
This message has been deleted by 007asha.
pike
Junior Member
Join Date: Jun 2009
Old 09-13-2010 , 15:33   Re: Block fullupdate
Reply With Quote #8

Quote:
Originally Posted by 007asha View Post
If 4 people use lag script with fullupdate 3 times it will create not little load to internet, where server(s) situated.
It will help I think http://forums.alliedmods.net/showpos...04&postcount=9
although does not think that you have a problem with it.
pike is offline
Reply


Thread Tools
Display Modes

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 01:20.


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