Raised This Month: $ Target: $400
 0% 

[Ham] Disabling PreThink


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-09-2011 , 11:53   [Ham] Disabling PreThink
Reply With Quote #1

How to disable PreThink for only 1 person?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "Xalus"

new HamHook:PlayerPreThink[33];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    for(new 
033i++) {
        
PlayerPreThink[i] = RegisterHam(Ham_Player_PreThink"player""Ham_PlayerPreThink")
        
DisableHamForward(PlayerPreThink[i])
    }
}
public 
client_connect(id)
    
EnableHamForward(PlayerPreThink[id]) 
This way looks stupid, and won't work also :{
__________________
Retired.
Xalus is offline
 



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


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