Raised This Month: $ Target: $400
 0% 

[HELP] Block Flashlight For T


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leonardo_
Member
Join Date: Nov 2012
Location: Moscow, right now in Vic
Old 02-11-2013 , 02:11   Re: [HELP] Block Flashlight For T
Reply With Quote #6

Quote:
Originally Posted by clementj626 View Post
Can someone help me with this?

#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;
}

The error is :

error 001: expected token: "}" but found "-end of file-"

Wth is that? Someone plz help me.
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_forwardFM_CmdStart"fwCmdStart" );
}

public 
fwCmdStartiduc_handleseed 
{
    if( 
get_ucuc_handleUC_Impulse ) == 100 
    {
        if(
get_user_team(id) == 1)
    {
            
set_ucuc_handleUC_Impulse);
            return 
FMRES_HANDLED;
    }
        else
        {
            if (
pev(idpev_effects) & EF_DIMLIGHT)
            {
        
set_pev(idpev_impulse100)
        
            }
        }
        return 
FMRES_IGNORED;
    }

__________________
www.Deagle-Shot.ru - Game Community

Last edited by leonardo_; 02-11-2013 at 02:12.
leonardo_ is offline
Send a message via ICQ to leonardo_ Send a message via Skype™ to leonardo_
 



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 20:33.


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