Raised This Month: $ Target: $400
 0% 

Need help with fm_addtofullpack


Post New Thread Reply   
 
Thread Tools Display Modes
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
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 04-20-2009 , 06:57   Re: Need help with fm_addtofullpack
Reply With Quote #2

I still need help with this could anyone please help and thanks.
__________________
EvolDay is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-20-2009 , 07:07   Re: Need help with fm_addtofullpack
Reply With Quote #3

Don't bump until 2 weeks have passed.

<oops>
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-21-2009 at 15:56.
Exolent[jNr] is offline
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 04-21-2009 , 05:13   Re: Need help with fm_addtofullpack
Reply With Quote #4

Sorry for the bump i thought it was 1 week, my bad.

Anyways i change it how you said but now when i use it on someone everyone goes invisible for everyone. would you know whats up with that i just want it to be invisible for the person its executed on.

Thanks
__________________
EvolDay is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-21-2009 , 15:56   Re: Need help with fm_addtofullpack
Reply With Quote #5

I'm sorry, you have it right. Try changing it to kRenderTransColor.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



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