Quote:
Originally Posted by Kruzi
Thank you very much!
I tryed to add message but it called all times when using +hook.
How i can check that timer is on? TY
Code:
#include <sourcemod>
#include <shavit>
#include <hgr>
public Action HGR_OnClientHook(int client)
{
Shavit_StopTimer(client);
PrintToChat(client, "%s \x02Время остановлено из-за паутинки", PREFIX);
return Plugin_Continue;
}
public Action HGR_OnClientRope(int client)
{
Shavit_StopTimer(client);
PrintToChat(client, "%s \x02Время остановлено из-за паутинки", PREFIX);
return Plugin_Continue;
}
|
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;
}