Raised This Month: $ Target: $400
 0% 

Need help with fm_addtofullpack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 04-11-2009 , 20:39   Need help with fm_addtofullpack
Reply With Quote #1

I can't get this to work could anyone help me with this please.

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


#define PLUGIN "test"
#define VERSION "1.0"
#define AUTHOR "none"

#define ADMIN ADMIN_LEVEL_A

new bool:Invisible[33];
new 
bool:viewInvisible[33];

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);

    
register_concmd("amx_testit","testit",ADMIN,"<nick, #userid> : Make user not see other users");

    
register_forward(FM_AddToFullPack"addtofullpack",1);
}


public 
addtofullpack(es_handle,e,ent,id,host,player,pSet) {
    if(!
player
        return 
FMRES_IGNORED;
    
    if(
Invisible[ent] && viewInvisible[host])
    {
        
set_es(es_handle,ES_RenderMode,kRenderTransTexture);
            
set_es(es_handle,ES_RenderAmt,0);
    }
    return 
FMRES_IGNORED;
}

public 
client_connect(id)
{
    
Invisible[id] = true;
}

public 
client_disconnect(id)
{
    if (
Invisible[id])
    {
        
Invisible[id] = false;
    }
}

public 
testit(id,level,cid)
{
    if (!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED;
    
    new 
arg[32];
    
    
read_argv(1arg31)
    
    new 
player cmd_target(idargCMDTARGET_OBEY_IMMUNITY CMDTARGET_ALLOW_SELF);
    
    if (!
player)
        return 
PLUGIN_HANDLED;
    
    
viewInvisible[player] = true;
    
    return 
PLUGIN_HANDLED;

__________________
EvolDay 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 02:26.


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