Raised This Month: $ Target: $400
 0% 

Simple effect (weapon remover)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 01-20-2013 , 08:01   Re: Simple effect (weapon remover)
Reply With Quote #3

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

#define PLUGIN "Destroy Weapons" 
#define AUTHOR "ConnorMcLeod" 
#define VERSION "0.0.1" 

new Float:w_Origin[3]
new 
TEST_EXPL

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_forward(FM_SetModel"SetModel"
}

public 
plugin_precache()
{
    
TEST_EXPL precache_model"sprites/flame.spr" );


public 
SetModel(iEntszModel[]) 

    if( 
equal(szModel"models/w_"9) ) 
    {
        new 
szClassName[2]
        
pev(iEntpev_classnameszClassNamecharsmax(szClassName))
        if( 
szClassName[0] == 'w' // "weaponbox": remove all weapons, but not a "grenade"
        
{
              
//effects begin
              
pev(iEntpev_originw_Origin)
              
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
              
write_byte(TEST_EXPL); 
              
write_coord(w_Origin[0]); 
              
write_coord(w_Origin[1]); 
              
write_coord(w_Origin[2]); 
              
write_byte(185); 
              
write_byte(10); 
              
message_end();
              
//effects end
              
              
set_pev(iEntpev_nextthinkget_gametime() + 10.0//remove dropped weapon code..
        
}
    } 

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

Warning: Tag mismatch on line 34
Warning: Tag mismatch on line 35
Warning: Tag mismatch on line 36
Header size: 408 bytes
Code size: 936 bytes
Data size: 316 bytes
Stack/heap size: 16384 bytes; estimated max. usage=41 cells (164 bytes)
Total requirements: 18044 bytes

3 Warnings.
Done.

And does not work. I am not a programmer..
__________________
sorry my bad english...
alonelive 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 13:38.


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