Raised This Month: $ Target: $400
 0% 

Grenade Glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dark Kingdom
BANNED
Join Date: Apr 2007
Location: VT
Old 04-09-2007 , 06:45   Re: Grenade Glow
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>


new const g_szGrenadeMdl "models/w_grenade.mdl"

public plugin_init() {
    
register_forwardFM_SetModel"hook_SetModel_post")
}

public 
hook_SetModel_postent, const szMdl[] )
 
    if( 
equalszMdlg_szGrenadeMdl ) )
    {
        
set_peventpev_renderfxkRenderFxGlowShell )
        
set_peventpev_renderamt125.0 )
        
set_peventpev_rendermodekRenderTransAlpha )
        
set_peventpev_rendercolor, {0.0255.00.0} )
    }

Compiles with

Code:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/home/groups/amxmodx/tmp3/phpGNlx58.sma(12) : warning 218: old style prototypes used with optional semicolumns
/home/groups/amxmodx/tmp3/phpGNlx58.sma(14) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/phpGNlx58.sma(17) : error 021: symbol already defined: "set_pev"
/home/groups/amxmodx/tmp3/phpGNlx58.sma(23) : warning 203: symbol is never used: "g_szGrenadeMdl"

2 Errors.
Could not locate output file /home/groups/amxmodx/public_html/websc3/phpGNlx58.amx (compile failed).
Dark Kingdom 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 06:39.


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