Raised This Month: $ Target: $400
 0% 

what's wrong?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-06-2008 , 11:33   what's wrong?
Reply With Quote #1

hey guys... i make this code..but one error...can you help me?


PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "NihilanthBomb"
#define VERSION "1.0"
#define AUTHOR "tuty"



new const gC4Model[] = "models/nihilanth.mdl";


public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_forward(FM_SetModel"Bomb_Model");
    
register_forward(FM_Think"c4place");
    
}
public 
plugin_precache()
{
    
precache_model(gC4Model);
}

public 
c4place(Ent)
{
    if(!
pev_valid(Ent))
              return 
FMRES_IGNORED;
    
    static 
sClassName[32];
    
pev(Entpev_classnamesClassNamesizeof sClassName -1);
    
    if(!
strcmp(sClassName1))
    {
        
engfunc(EngFunc_RemoveEntityEnt);
    }
    return 
FMRES_IGNORED;
}
public 
Bomb_Model(Ent, const szModel[])
{
    if(!
pev_valid(Ent))
              return 
FMRES_IGNORED;
    if(!
strcmp(szModel"models/w_c4.mdl"))
    {
        
engfunc(EngFunc_SetModelEntgC4Model);
        
        return 
FMRES_SUPERCEDE;
    }
    return 
FMRES_IGNORED;

__________________

Last edited by tuty; 08-06-2008 at 11:36.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
 


Thread Tools
Display Modes

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 05:37.


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