AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with a slot ( ESF ) (https://forums.alliedmods.net/showthread.php?t=55017)

B1ondu 05-11-2007 08:22

help with a slot ( ESF )
 
well i am triyng to replace sensubean with my own kaioken.

here part of my code:

Code:

public plugin_init() {
        ...
        register_clcmd("slot9","kaiokenm")
          ...
}

public kaiokenm(id){
        if( entity_get_int(id, EV_INT_playerclass) == 2 ){
                g_Kaioken[id] = 1
        }
}

public client_PostThink(id){
        if(g_Kaioken[id] !=0){
                if(get_user_button(id) & IN_ATTACK){
                        set_task(0.0,"kaioken_charge",id)
                       
                }
        }
}

this way don't work, please help me

thankx

--blondu


All times are GMT -4. The time now is 06:45.

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