View Single Post
Kruzi
Senior Member
Join Date: Dec 2014
Location: Kyiv, Ukraine
Old 11-01-2015 , 10:58   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #268

Quote:
Originally Posted by ofir753 View Post
Code:
#include <sourcemod>
#include <shavit>
#include <hgr>

public Action HGR_OnClientHook(int client)
{
	if(IsTimerAcitve(client))
	{
		Shavit_StopTimer(client);
		PrintToChat(client, "%s \x02Время остановлено из-за паутинки", PREFIX);
	}
	
	return Plugin_Continue;
}

public Action HGR_OnClientRope(int client)
{
	if(IsTimerAcitve(client))
	{
		Shavit_StopTimer(client);
		PrintToChat(client, "%s \x02Время остановлено из-за паутинки", PREFIX);
	}
	
	return Plugin_Continue;
}

public bool IsTimerActive(client)
{
	float time;
	int jumps;
	BhopStyle style;
	bool started;
	Shavit_GetTimer(client, time, jumps, style, started);
	return started;
}
2 Errors. Undefinite symbol "IsTimerActive"
Kruzi is offline