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(PLUGIN, VERSION, AUTHOR)
}
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 ?