Raised This Month: $ Target: $400
 0% 

remove_entity crash


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 08-28-2012 , 22:09   remove_entity crash
Reply With Quote #1

hi i don't know why this crash my HLDS;

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

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /remove""cmdRemove")
}

public 
cmdRemove(id) {
    
    if(!
is_user_alive(id))
        return 
PLUGIN_HANDLED
    
    
new Ent find_ent_by_owner(-1"weapon_knife"id)
        
    
remove_entity(Ent)
        
    return 
PLUGIN_HANDLED
    

any idea?

thanks for reading
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
 



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:52.


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