View Single Post
Author Message
FoxyTheDeveloper
Junior Member
Join Date: Jun 2020
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