Raised This Month: $404 Target: $400
 101% 

[REQ] Advanced Invis Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Snake.
Senior Member
Join Date: Jul 2017
Old Yesterday , 04:38   Re: [REQ] Advanced Invis Menu
Reply With Quote #11

Help..
Snake. is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old Yesterday , 06:06   Re: [REQ] Advanced Invis Menu
Reply With Quote #12

This helps you.
__________________

Mordekay is offline
Snake.
Senior Member
Join Date: Jul 2017
Old Yesterday , 07:02   Re: [REQ] Advanced Invis Menu
Reply With Quote #13

Quote:
Originally Posted by Mordekay View Post
This helps you.
If you won't help, do not post.I know the rules but i need it urgently.That's why i bump it.
Snake. is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old Yesterday , 07:19   Re: [REQ] Advanced Invis Menu
Reply With Quote #14

So breaking the rules is ok because you think you are something better or what?
Stop bumping, or i will report you!
__________________

Mordekay is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old Yesterday , 08:38   Re: [REQ] Advanced Invis Menu
Reply With Quote #15

Quote:
Originally Posted by Mordekay View Post
So breaking the rules is ok because you think you are something better or what?
Stop bumping, or i will report you!
Please report posts that break the rules and don't reply to them. It's off putting seeing you and other like minded individuals spamming a coding forum with unhelpful posts. Let the moderators do the moderating.

Snake. This should do what you're asking for.

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

new gRender[33][33];

public 
plugin_init()
{
    
register_plugin("Partial Render""1.0""Partial Cloning");
    
register_forward(FM_AddToFullPack"FW_AddToFullPack"true);

    
register_clcmd("say /invis""CMD_AdvancedInvisMenu");
}

public 
CMD_AdvancedInvisMenu(id)
{
    new 
Menu menu_create("Advanced Invis Menu""AdvancedInvisHandler");

    new 
Players[32], NumPlayerItemName[48], PlayerName[32], Info[3];
    
get_players(PlayersNum"h");
    for(new 
iNumi++)
    {
        
Player Players[i];

        if(
Player == id)
            continue;

        
get_user_name(PlayerPlayerNamecharsmax(PlayerName));
        
num_to_str(PlayerInfocharsmax(Info));

        
formatex(ItemNamecharsmax(ItemName), "%s (%s)"PlayerNamegRender[id][Player] ? "\yInvisible\w" "\dVisible\w");
        
menu_additem(MenuItemNameInfo);
    }

    
num_to_str(idInfocharsmax(Info));
    
formatex(ItemNamecharsmax(ItemName), "Make yourself (%s)"gRender[id][id] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemNameInfo);

    
formatex(ItemNamecharsmax(ItemName), "Make all the players (%s)"gRender[id][0] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemName"0");

    
menu_display(idMenu);
}

public 
AdvancedInvisHandler(idMenuItem)
{
    if(
Item == MENU_EXIT)
    {
        
menu_destroy(Menu);
        return 
PLUGIN_HANDLED;
    }

    new 
AccessValueInfo[3], ItemName[1], Callback;
    
menu_item_getinfo(MenuItemAccessValueInfocharsmax(Info), ItemNamecharsmax(ItemName), Callback);

    new 
Target str_to_num(Info);

    if(
is_user_connected(Target) || Target == 0)
        
gRender[id][Target] = !gRender[id][Target];

    
CMD_AdvancedInvisMenu(id);

    
menu_destroy(Menu);
    return 
PLUGIN_HANDLED;
}

public 
FW_AddToFullPack(ESHandleEEntityidFlagsPlayerPSet)
{
    if(
Player && (gRender[id][Entity] || gRender[id][0] || gRender[Entity][Entity]))
    {
        
set_es(ESHandleES_RenderModekRenderTransTexture);
        
set_es(ESHandleES_RenderAmt0);
    }

    return 
FMRES_IGNORED;
}

public 
client_putinserver(id)
{
    for(new 
i33i++)
    {
        
gRender[id][i] = 0;
        
gRender[i][id] = 0;
    }


Last edited by PartialCloning; Yesterday at 08:43.
PartialCloning is offline
Snake.
Senior Member
Join Date: Jul 2017
Old Yesterday , 09:13   Re: [REQ] Advanced Invis Menu
Reply With Quote #16

Quote:
Originally Posted by PartialCloning View Post
Please report posts that break the rules and don't reply to them. It's off putting seeing you and other like minded individuals spamming a coding forum with unhelpful posts. Let the moderators do the moderating.

Snake. This should do what you're asking for.

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

new gRender[33][33];

public 
plugin_init()
{
    
register_plugin("Partial Render""1.0""Partial Cloning");
    
register_forward(FM_AddToFullPack"FW_AddToFullPack"true);

    
register_clcmd("say /invis""CMD_AdvancedInvisMenu");
}

public 
CMD_AdvancedInvisMenu(id)
{
    new 
Menu menu_create("Advanced Invis Menu""AdvancedInvisHandler");

    new 
Players[32], NumPlayerItemName[48], PlayerName[32], Info[3];
    
get_players(PlayersNum"h");
    for(new 
iNumi++)
    {
        
Player Players[i];

        if(
Player == id)
            continue;

        
get_user_name(PlayerPlayerNamecharsmax(PlayerName));
        
num_to_str(PlayerInfocharsmax(Info));

        
formatex(ItemNamecharsmax(ItemName), "%s (%s)"PlayerNamegRender[id][Player] ? "\yInvisible\w" "\dVisible\w");
        
menu_additem(MenuItemNameInfo);
    }

    
num_to_str(idInfocharsmax(Info));
    
formatex(ItemNamecharsmax(ItemName), "Make yourself (%s)"gRender[id][id] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemNameInfo);

    
formatex(ItemNamecharsmax(ItemName), "Make all the players (%s)"gRender[id][0] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemName"0");

    
menu_display(idMenu);
}

public 
AdvancedInvisHandler(idMenuItem)
{
    if(
Item == MENU_EXIT)
    {
        
menu_destroy(Menu);
        return 
PLUGIN_HANDLED;
    }

    new 
AccessValueInfo[3], ItemName[1], Callback;
    
menu_item_getinfo(MenuItemAccessValueInfocharsmax(Info), ItemNamecharsmax(ItemName), Callback);

    new 
Target str_to_num(Info);

    if(
is_user_connected(Target) || Target == 0)
        
gRender[id][Target] = !gRender[id][Target];

    
CMD_AdvancedInvisMenu(id);

    
menu_destroy(Menu);
    return 
PLUGIN_HANDLED;
}

public 
FW_AddToFullPack(ESHandleEEntityidFlagsPlayerPSet)
{
    if(
Player && (gRender[id][Entity] || gRender[id][0] || gRender[Entity][Entity]))
    {
        
set_es(ESHandleES_RenderModekRenderTransTexture);
        
set_es(ESHandleES_RenderAmt0);
    }

    return 
FMRES_IGNORED;
}

public 
client_putinserver(id)
{
    for(new 
i33i++)
    {
        
gRender[id][i] = 0;
        
gRender[i][id] = 0;
    }

Thank you so much. <3
Snake. is offline
Snake.
Senior Member
Join Date: Jul 2017
Old Yesterday , 09:28   Re: [REQ] Advanced Invis Menu
Reply With Quote #17

Quote:
Originally Posted by PartialCloning View Post
Please report posts that break the rules and don't reply to them. It's off putting seeing you and other like minded individuals spamming a coding forum with unhelpful posts. Let the moderators do the moderating.

Snake. This should do what you're asking for.

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

new gRender[33][33];

public 
plugin_init()
{
    
register_plugin("Partial Render""1.0""Partial Cloning");
    
register_forward(FM_AddToFullPack"FW_AddToFullPack"true);

    
register_clcmd("say /invis""CMD_AdvancedInvisMenu");
}

public 
CMD_AdvancedInvisMenu(id)
{
    new 
Menu menu_create("Advanced Invis Menu""AdvancedInvisHandler");

    new 
Players[32], NumPlayerItemName[48], PlayerName[32], Info[3];
    
get_players(PlayersNum"h");
    for(new 
iNumi++)
    {
        
Player Players[i];

        if(
Player == id)
            continue;

        
get_user_name(PlayerPlayerNamecharsmax(PlayerName));
        
num_to_str(PlayerInfocharsmax(Info));

        
formatex(ItemNamecharsmax(ItemName), "%s (%s)"PlayerNamegRender[id][Player] ? "\yInvisible\w" "\dVisible\w");
        
menu_additem(MenuItemNameInfo);
    }

    
num_to_str(idInfocharsmax(Info));
    
formatex(ItemNamecharsmax(ItemName), "Make yourself (%s)"gRender[id][id] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemNameInfo);

    
formatex(ItemNamecharsmax(ItemName), "Make all the players (%s)"gRender[id][0] ? "\dVisible\w" "\yInvisible\w");
    
menu_additem(MenuItemName"0");

    
menu_display(idMenu);
}

public 
AdvancedInvisHandler(idMenuItem)
{
    if(
Item == MENU_EXIT)
    {
        
menu_destroy(Menu);
        return 
PLUGIN_HANDLED;
    }

    new 
AccessValueInfo[3], ItemName[1], Callback;
    
menu_item_getinfo(MenuItemAccessValueInfocharsmax(Info), ItemNamecharsmax(ItemName), Callback);

    new 
Target str_to_num(Info);

    if(
is_user_connected(Target) || Target == 0)
        
gRender[id][Target] = !gRender[id][Target];

    
CMD_AdvancedInvisMenu(id);

    
menu_destroy(Menu);
    return 
PLUGIN_HANDLED;
}

public 
FW_AddToFullPack(ESHandleEEntityidFlagsPlayerPSet)
{
    if(
Player && (gRender[id][Entity] || gRender[id][0] || gRender[Entity][Entity]))
    {
        
set_es(ESHandleES_RenderModekRenderTransTexture);
        
set_es(ESHandleES_RenderAmt0);
    }

    return 
FMRES_IGNORED;
}

public 
client_putinserver(id)
{
    for(new 
i33i++)
    {
        
gRender[id][i] = 0;
        
gRender[i][id] = 0;
    }

Can you do another item for the players and a back option to that menu ? Also is it possible to ignore bots in menu ?

Last edited by Snake.; Yesterday at 09:29.
Snake. is offline
Reply


Thread Tools
Display Modes

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 17:49.


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