fix optional natives aaa i hate sourcepawn

This commit is contained in:
shavitush 2016-07-26 05:52:49 +03:00
parent 1a7cdc385d
commit 4a6a728c9b
12 changed files with 16 additions and 8 deletions

View File

@ -740,6 +740,7 @@ public SharedPlugin __pl_shavit =
#endif
};
#if !defined REQUIRE_PLUGIN
public void __pl_shavit_SetNTVOptional()
{
MarkNativeAsOptional("Shavit_StartTimer");
@ -772,3 +773,4 @@ public void __pl_shavit_SetNTVOptional()
MarkNativeAsOptional("Shavit_IsReplayDataLoaded");
MarkNativeAsOptional("Shavit_FormatChat");
}
#endif

View File

@ -22,10 +22,9 @@
#include <cstrike>
#include <dynamic>
#undef REQUIRE_PLUGIN
#define USES_CHAT_COLORS
#include <shavit>
#undef REQUIRE_PLUGIN
#include <basecomm>
#include <rtler>
#include <scp>

View File

@ -22,12 +22,11 @@
#include <sdktools>
#include <geoip>
#undef REQUIRE_PLUGIN
#define USES_STYLE_PROPERTIES
#define USES_STYLE_NAMES
#define USES_STYLE_VELOCITY_LIMITS
#include <shavit>
#undef REQUIRE_PLUGIN
#include <adminmenu>
#pragma newdecls required

View File

@ -19,12 +19,13 @@
*/
#include <sourcemod>
#include <clientprefs>
#undef REQUIRE_PLUGIN
#define USES_STYLE_NAMES
#define USES_STYLE_HTML_COLORS
#define USES_STYLE_PROPERTIES
#include <shavit>
#include <clientprefs>
#pragma newdecls required
#pragma semicolon 1

View File

@ -23,6 +23,7 @@
#include <sdktools>
#include <sdkhooks>
#undef REQUIRE_PLUGIN
#define USES_STYLE_NAMES
#define USES_STYLE_PROPERTIES
#include <shavit>

View File

@ -20,6 +20,7 @@
#include <sourcemod>
#undef REQUIRE_PLUGIN
#define USES_STYLE_MULTIPLIERS
#include <shavit>

View File

@ -23,6 +23,7 @@
#include <sdktools>
#include <sdkhooks>
#undef REQUIRE_PLUGIN
#define USES_STYLE_NAMES
#define USES_SHORT_STYLE_NAMES
#define USES_STYLE_PROPERTIES

View File

@ -20,6 +20,8 @@
#include <sourcemod>
#include <sdktools>
#undef REQUIRE_PLUGIN
#include <shavit>
#pragma semicolon 1

View File

@ -21,6 +21,7 @@
#include <sourcemod>
#include <cstrike>
#undef REQUIRE_PLUGIN
#define USES_STYLE_NAMES
#define USES_SHORT_STYLE_NAMES
#define USES_STYLE_PROPERTIES

View File

@ -21,6 +21,8 @@
// original idea from ckSurf.
#include <sourcemod>
#undef REQUIRE_PLUGIN
#include <shavit>
#pragma semicolon 1

View File

@ -20,11 +20,10 @@
#include <sourcemod>
#undef REQUIRE_PLUGIN
#define USES_STYLE_NAMES
#define USES_STYLE_PROPERTIES
#include <shavit>
#undef REQUIRE_PLUGIN
#include <adminmenu>
#pragma semicolon 1

View File

@ -21,9 +21,9 @@
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <shavit>
#undef REQUIRE_PLUGIN
#include <shavit>
#include <adminmenu>
#pragma semicolon 1