Raised This Month: $ Target: $400
 0% 

Problem w/ FM_AddToFullPack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Spriite
Member
Join Date: Aug 2010
Old 07-07-2012 , 13:51   Problem w/ FM_AddToFullPack
Reply With Quote #1

I tried using this plugin, but the entity stays solid.

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fakemeta>
 
new bool:g_hasAccess[33];
 
public 
plugin_init() {
        
register_forward(FM_AddToFullPack"fw_AddToFullPack_post"1);
}
 
public 
client_putinserver(id)
        if(
get_user_flags(id)& ADMIN_IMMUNITY)
                
g_hasAccess[id] = true;
 
public 
fw_AddToFullPack_post(es_handleeenthosthflagsplayerset)
{
        if(!
player && pev_valid(ent) && g_hasAccess[host])
        {
                static 
szClass[20];
                
pev(entpev_classnameszClasscharsmax(szClass));
                if(
equal(szClass"some_ent"))
                        
set_es(es_handleES_SolidSOLID_NOT);
        }

What's wrong with my code?

Obs: sorry for my bad english.

Last edited by Spriite; 07-07-2012 at 13:55.
Spriite 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 23:20.


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