Raised This Month: $32 Target: $400
 8% 

Hidden noclip Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FoxyTheDeveloper
Junior Member
Join Date: Jun 2020
Plugin ID:
7164
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 06-16-2020 , 13:28   Hidden noclip Plugin
    Reply With Quote #1

    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);
    }
    FoxyTheDeveloper is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-16-2020 , 14:29   Re: Hidden Noclip Plugin
    Reply With Quote #2

    You should attach the .sp and delete the .smx and pasted code since it has no special includes and will compile on the forum.
    __________________
    Silvers is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 06-16-2020 , 15:31   Re: Hidden Noclip Plugin
    Reply With Quote #3

    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 View Post
    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.
    Maxximou5 is offline
    Nocky
    Member
    Join Date: Oct 2013
    Location: Czech Republic
    Old 06-17-2020 , 11:07   Re: Hidden noclip Plugin
    Reply With Quote #4

    Wtf? You only copy funcommands noclip plugin, haha

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

    Last edited by Nocky; 06-17-2020 at 11:08.
    Nocky is offline
    Naleksuh
    Member
    Join Date: Dec 2018
    Old 06-17-2020 , 14:20   Re: Hidden noclip Plugin
    Reply With Quote #5

    Quote:
    Originally Posted by Nocky View Post
    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
    Naleksuh is offline
    Sandervraun
    Senior Member
    Join Date: May 2019
    Location: Denmark
    Old 06-17-2020 , 15:47   Re: Hidden noclip Plugin
    Reply With Quote #6

    Why not just edit the sourcemod it self and remove the printchat in the plugin?
    Sandervraun 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:43.


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