mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-16 03:27:19 +00:00
Added Shavit_IsPaused.
This commit is contained in:
parent
5e6c84ef98
commit
942d6d9675
@ -23,7 +23,7 @@
|
||||
#endif
|
||||
#define _shavit_included
|
||||
|
||||
#define SHAVIT_VERSION "2.4.0"
|
||||
#define SHAVIT_VERSION "2.4.1"
|
||||
#define STYLE_LIMIT 256
|
||||
#define MAX_ZONES 64
|
||||
#define MAX_NAME_LENGTH_SQL 32
|
||||
@ -1212,6 +1212,14 @@ native StringMap Shavit_GetMapTiers();
|
||||
*/
|
||||
native bool Shavit_HasStyleAccess(int client, int style);
|
||||
|
||||
/**
|
||||
* Determines whether a client's timer is paused or not.
|
||||
*
|
||||
* @param client Client index.
|
||||
* @return Boolean value.
|
||||
*/
|
||||
native bool Shavit_IsPaused(int client);
|
||||
|
||||
/**
|
||||
* Use this native when printing anything in chat if it's related to the timer.
|
||||
* This native will auto-assign colors and a chat prefix.
|
||||
@ -1315,6 +1323,7 @@ public void __pl_shavit_SetNTVOptional()
|
||||
MarkNativeAsOptional("Shavit_InsideZone");
|
||||
MarkNativeAsOptional("Shavit_IsClientCreatingZone");
|
||||
MarkNativeAsOptional("Shavit_IsKZMap");
|
||||
MarkNativeAsOptional("Shavit_IsPaused");
|
||||
MarkNativeAsOptional("Shavit_IsPracticeMode");
|
||||
MarkNativeAsOptional("Shavit_IsReplayDataLoaded");
|
||||
MarkNativeAsOptional("Shavit_LoadSnapshot");
|
||||
|
||||
@ -180,6 +180,7 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
|
||||
CreateNative("Shavit_GetTimerStatus", Native_GetTimerStatus);
|
||||
CreateNative("Shavit_HasStyleAccess", Native_HasStyleAccess);
|
||||
CreateNative("Shavit_IsKZMap", Native_IsKZMap);
|
||||
CreateNative("Shavit_IsPaused", Native_IsPaused);
|
||||
CreateNative("Shavit_IsPracticeMode", Native_IsPracticeMode);
|
||||
CreateNative("Shavit_LoadSnapshot", Native_LoadSnapshot);
|
||||
CreateNative("Shavit_LogMessage", Native_LogMessage);
|
||||
@ -1240,6 +1241,11 @@ public int Native_SetPracticeMode(Handle handler, int numParams)
|
||||
gA_Timers[client].bPracticeMode = practice;
|
||||
}
|
||||
|
||||
public int Native_IsPaused(Handle handler, int numParams)
|
||||
{
|
||||
return view_as<int>(gA_Timers[GetNativeCell(1)].bPaused);
|
||||
}
|
||||
|
||||
public int Native_IsPracticeMode(Handle handler, int numParams)
|
||||
{
|
||||
return view_as<int>(gA_Timers[GetNativeCell(1)].bPracticeMode);
|
||||
|
||||
@ -1224,7 +1224,7 @@ int AddHUDToBuffer_CSGO(int client, huddata_t data, char[] buffer, int maxlen)
|
||||
StrCat(buffer, maxlen, "</span>");
|
||||
|
||||
return iLines;
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateMainHUD(int client)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user