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 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
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)
{
// 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.
// 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;
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