Raised This Month: $ Target: $400
 0% 

Timer


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-22-2012 , 01:14   Re: Timer
Reply With Quote #5

There are few things missing to detect more buttons, i suggest you install the attached plugin, and in your plugin just use the following code :

PHP Code:
#include <amxmodx>

#define Start 0
#define Stop 1

forward client_use_button(idiButtonType)

public 
plugin_init()
{

}

public 
client_use_button(idiButtonType)
{
    if( 
iButtonType == Stop )
    {
        
// stop timer here
    
}
    else
    {
        
// start timer here
    
}

Attached Files
File Type: sma Get Plugin or Get Source (kz_buttons.sma - 613 views - 6.9 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 06:16.


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