AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Hidden noclip Plugin (https://forums.alliedmods.net/showthread.php?t=325316)

FoxyTheDeveloper 06-16-2020 13:28

Hidden noclip Plugin
 
This Plugin Is For Hidden Noclip

If You Ask Yourself "What Do You Mean Hidden Noclip"
So Here The Answer: I Mean Hidden Noclip Like If You Want To Do Noclip When Everybody Doesn't Know
That You Are In Noclip This Is The Plugin For You
So This Is All If You Have Questions Ask Me I Will Answer You And Enjoy The Plugin

How To Use
sm_hnoclip <#userid|Playername>


This Plugin Is Created By Foxy
If You Want Private Plugin PM Me In The Discord
Discord:Foxy#3426

Source:
Code:

#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR "Foxy"
#define PLUGIN_VERSION "1.00"

#include <sourcemod>
#include <sdktools>

public Plugin myinfo =
{
        name = "Hidden Noclip",
        author = PLUGIN_AUTHOR,
        description = "",
        version = PLUGIN_VERSION,
        url = ""
};

public void OnPluginStart()
{
        RegAdminCmd("sm_hnoclip", Command_HiddenNoclip, ADMFLAG_CHEATS);
        LoadTranslations("common.phrases");
}

public Action Command_HiddenNoclip(int client, int args)
{
        if (args == 0)
        {
                ReplyToCommand(client, "[SM] Usage: sm_fnoclip <#userid|name>");
    }
        if (args < 1)
        {
                ReplyToCommand(client, "[SM] Usage: sm_fnoclip <#userid|name>");
                return Plugin_Handled;
        }

        decl String:arg[65];
        GetCmdArg(1, arg, sizeof(arg));

        decl String:target_name[MAX_TARGET_LENGTH];
        decl target_list[MAXPLAYERS], target_count, bool:tn_is_ml;

        if ((target_count = ProcessTargetString(
                        arg,
                        client,
                        target_list,
                        MAXPLAYERS,
                        COMMAND_FILTER_ALIVE,
                        target_name,
                        sizeof(target_name),
                        tn_is_ml)) <= 0)
        {
                ReplyToTargetError(client, target_count);
                return Plugin_Handled;
        }

        for (new i = 0; i < target_count; i++)
        {
                PerformNoclip(client, target_list[i]);
        }

        return Plugin_Handled;
}

PerformNoclip(client, target)
{
        if (GetEntProp(target, Prop_Send, "movetype", 1) == 8)
                SetEntProp(target, Prop_Send, "movetype", 2, 1);
        else
                SetEntProp(target, Prop_Send, "movetype", 8, 1);
}


Silvers 06-16-2020 14:29

Re: Hidden Noclip Plugin
 
You should attach the .sp and delete the .smx and pasted code since it has no special includes and will compile on the forum.

Maxximou5 06-16-2020 15:31

Re: Hidden Noclip Plugin
 
You should have been able to copy things correctly, since this was taken directly from SourceMod's noclip plugin. You still somehow used an old version with old syntaxing, but here's a breakdown of some suggestions.
Spoiler

What it should look like now:
Spoiler

Quote:

Originally Posted by FoxyTheDeveloper (Post 2706049)
This Plugin Is Created By Foxy
If You Want Private Plugin PM Me In The Discord

I would be hesitant on asking for private plugins just yet. You need to improve this code first before taking on plugin requests.

Nocky 06-17-2020 11:07

Re: Hidden noclip Plugin
 
Wtf? You only copy funcommands noclip plugin, haha

And why is first half in new syntax and second half in old syntax?

Naleksuh 06-17-2020 14:20

Re: Hidden noclip Plugin
 
Quote:

Originally Posted by Nocky (Post 2706179)
Wtf? You only copy funcommands noclip plugin, haha

And why is first half in new syntax and second half in old syntax?

Because the first half is from AM tutorials and the second half is copied from somewhere before 2015.

Also yes, this is basically "sm_noclip but the value of sm_show_activity is ignored". I don't see how the noclip is "hidden" when anyone who is looking at you can see it

Sandervraun 06-17-2020 15:47

Re: Hidden noclip Plugin
 
Why not just edit the sourcemod it self and remove the printchat in the plugin? :D


All times are GMT -4. The time now is 11:39.

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