Raised This Month: $ Target: $400
 0% 

How to register a bool variable to catch flashlight on


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 06-09-2013 , 13:10   How to register a bool variable to catch flashlight on
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

}

public function() {
    new 
bool:IsFlashLightOn
    IsFlashLightOn 
= ???
    
    if ( 
bool:IsFlashLightOn == true ) { 
        
client_cmd (31"impulse 100")
    }
    else {
        
// Do nothing
    
}
}} 
I just started to learn pawn as I'm free in this summer,
I know this is a total mess ..Just doing it for learning purposes, but how to catch the player when his flashlight is on ?

Last edited by Moody92; 06-09-2013 at 13:25.
Moody92 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:21.


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