Quote:
Originally Posted by leonardo_
I guess it suppose to be like that:
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init( ) {
register_plugin( "Block Flashlight For T", "1.0", "None" );
register_forward( FM_CmdStart, "fwCmdStart" );
}
public fwCmdStart( id, uc_handle, seed )
{
if( get_uc( uc_handle, UC_Impulse ) == 100 )
{
if(get_user_team(id) == 1)
{
set_uc( uc_handle, UC_Impulse, 0 );
return FMRES_HANDLED;
}
else
{
if (pev(id, pev_effects) & EF_DIMLIGHT)
{
set_pev(id, pev_impulse, 100)
}
}
return FMRES_IGNORED;
}
}
|
Well, I got 1 Errors when compiling..
[PHP]/tmp/textXlqadC.sma(2

: warning 209: function "fwCmdStart" should return a value
Header size: 284 bytes
Code size: 544 bytes
Data size: 176 bytes
Stack/heap size: 16384 bytes; estimated max. usage=42 cells (168 bytes)
Total requirements: 17388 bytes
1 Warning.
Done.