Raised This Month: $ Target: $400
 0% 

TS RP Super Jump


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Maddo
Member
Join Date: Dec 2004
Old 04-07-2006 , 08:44  
Reply With Quote #3

ts_has_superjump is a function, not a cvar.

Try this:

Code:
#include <amxmodx> 
#include <tsx>
#include <tsfun>

public plugin_init() 
{ 
    register_plugin("TS Super Jump Disable","1.0","Nimgoble"); 
    register_cvar("amx_togglesuperjump","0"); 
    register_event("PwUp","check_powerup","be"); 
} 

public check_powerup(id) 
{ 
    //new items = ts_getuseritems(id); 
    if( ts_has_superjump(id) && !get_cvar_num("amx_togglesuperjump")) 
    { 
            user_kill(id); 
            client_print(id,print_chat,"Super Jump is not allowed."); 
    } 
    //client_print(id,print_chat,"No Super Jump"); 
    
    return PLUGIN_CONTINUE; 
}
Maddo 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 16:40.


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