Raised This Month: $ Target: $400
 0% 

registering +speed troubles


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 01-26-2010 , 08:24   registering +speed troubles
Reply With Quote #1

hello!

I've been trying to bind a self-made function to the "+speed" command.
Somehow everything I try fails with that command.

Can anybody check if there is anything wrong with my code?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>

new player_combos[32][2][33]

public 
plugin_init() {
    
register_plugin("Speed Combo System""1.0""SSJ2GOKU")
    
    
register_clcmd("+speed""set_combo_on");
    
register_clcmd("-speed""set_combo_off");
}


/**************************/
/**** COMBO SYSTEM BOX ****/
/**************************/

public showComboSystemNotice(id){
    if(
player_combos[id][0][0] == 1) {        
        
set_hudmessage(025500.00.506.02.0)
        
show_hudmessage(id"Combo System Active!")
        
        
set_task(2.0"showComboSystemNotice");
    }
}

public 
set_combo_on(id){
    
client_print(idprint_chat"COMBO INITIATED");
    
    
player_combos[id][0][0] = 1;
    
    
showComboSystemNotice(id);
}
public 
set_combo_off(id){
    if(
player_combos[id][0][0] != 0){
        
client_print(idprint_chat"COMBO STOPPED");
        
client_print(idprint_chatplayer_combos[id][1]);
        
        
player_combos[id][0][0] = 0;
    }

SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
 


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 07:23.


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