Raised This Month: $ Target: $400
 0% 

Detecting a button press (not a key press)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 09-07-2008 , 23:51   Re: Detecting a button press (not a key press)
Reply With Quote #6

here's an example from another thread: (it's old, I don't think you need "#include hamsandwich" anymore)

http://forums.alliedmods.net/showthr...hlight=ham_use

Code:
#include <amxmodx>
#include <hamsandwich>

new bool:IAmUsed[33]

public plugin_init() {
    RegisterHam(Ham_Use,"hostage_entity","event_hostage_used",1)
}

public event_hostage_used(hostage, id) {
    if(!IAmUsed[hostage]) {
        IAmUsed[hostage] = true
        client_print(id,print_chat,"Used a hostage")
    }
}
stupok 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 03:14.


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