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
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
Code:
#pragma semicolon 1
#define DEBUG // There's nothing being debugged, this can be removed
#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)
{
// This can be consildated into one piece.
if (args == 0)
{
ReplyToCommand(client, "[SM] Usage: sm_fnoclip <#userid|name>"); // The command is sm_hnoclip not sm_fnoclip.
}
// You have mixed spacing, using spaces or tabs, but pick one!
if (args < 1)
{
ReplyToCommand(client, "[SM] Usage: sm_fnoclip <#userid|name>"); // The command is sm_hnoclip not sm_fnoclip.
return Plugin_Handled;
}
// You return Plugin_Handled here but not above, both matter.
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;
// The above should use the newer syntax.
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;
}
// new should be int
for (new i = 0; i < target_count; i++)
{
PerformNoclip(client, target_list[i]);
// There's no point in including client if it isn't used in the function.
}
return Plugin_Handled;
}
// Mixed syntax usage again. Also not necessary since client is never used.
// (75) : warning 203: symbol is never used: "client"
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);
}
What it should look like now:
Spoiler
PHP Code:
#pragma semicolon 1
#define DEBUG // There's nothing being debugged, this can be removed
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 != 1)
{
ReplyToCommand(client, "[SM] Usage: sm_hnoclip <#userid|name>"); // The command is sm_hnoclip not sm_fnoclip.
return Plugin_Handled;
}
char arg[65];
GetCmdArg(1, arg, sizeof(arg));
char target_name[MAX_TARGET_LENGTH];
int target_list[MAXPLAYERS], target_count;
bool tn_is_ml;
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