Raised This Month: $ Target: $400
 0% 

Using prethink.. need some help!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 07-02-2009 , 16:33   Re: Using prethink.. need some help!
Reply With Quote #7

nope, hooked it all into a set_task of 6.0 seconds after user spawns, and hooked CurWeapon, my current problem is with hooking Feign...
Code:
Game registered user msgs:    msgid   size
Feign                       114      1
this is the code I have for it..
plugin_init
PHP Code:
register_event("Feign","feigned","be","1=1"
PHP Code:
public feigned(id)
{
    
log_amx("stated logging for feigned index")
    if(
get_pcvar_num(g_spycloak))
    {
        new class = 
entity_get_int(idEV_INT_playerclass)
        
log_amx("got playerclass %i",class)
        new 
name[33]
        
get_user_name(id,name,32)
        
log_amx("got player name of %s",name)
        if(class == 
8)
        {
            
log_amx("%s is a spy.. in feigned index..",name)
            
set_user_rendering(id,kRenderFxNone,_,_,_,kRenderTransAlpha,0)
            
log_amx("%s is feigning with full cloak",name)
            
client_print(id,print_chat"[AMXX] SpyCloak has detected you're feigning death, you are completely invisible now!")
        }
    }
    return 
PLUGIN_CONTINUE

with the log events there, I can tell that it is never called..
__________________
+|- KARMA Respectively

HLM 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 15:39.


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