View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-13-2014 , 01:16   Re: [REQ] mp_flashlight
Reply With Quote #3

Better to use following plugin with amxx 1.8.3, but it works with 1.8.2.

PHP Code:
#include < amxmodx >
#include < engine >

#pragma semicolon 1

#define PLUGIN "Teams FlashLight"
#define VERSION "0.0.1"

new mp_flashlight_teams;

public 
plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" );

    
mp_flashlight_teams register_cvar("mp_flashlight_teams""3"); // 0:none (plugin useless mp_flashlight 0 is enough), 1:Ts only, 2:CTs only, 3:All (useless plugin mp_flashlight 1 is enough)

    
register_impulse(100"OnImpulse_100");
}

public 
OnImpulse_100id )
{
    return 
is_user_alive(id) && ~entity_get_int(idEV_INT_effects) & EF_DIMLIGHT && ~get_pcvar_num(mp_flashlight_teams) & get_user_team(id);

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 02-13-2014 at 01:16.
ConnorMcLeod is offline