Raised This Month: $12 Target: $400
 3% 

[Help] Headshot CFG mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
3agopka
Member
Join Date: Oct 2014
Location: Bulgaria/Stara Zagora
Old 04-10-2018 , 08:43   [Help] Headshot CFG mode
Reply With Quote #1

hello guys anyone can help with this code? i give example mp_roundtime is 60 min.
I want on every 10 min , dm_headshot_only to turn on and next 10 min turn off.And when this cvar is comming i want text message something like this : Headshot mode is Active , Headshot mode is Inactive , something like that.

Code:
#include <sourcemod>

public Plugin myinfo = 
{
name = "HS Only timer test",
author = "Pankrakles",
description = "Changes to and from HS only every 25 mins",
version = "1.0",
};

ConVar g_hhsonly;

public void OnAllPluginsLoaded()
{
g_hhsonly = FindConVar("dm_headshot_only");

}

public void OnPluginStart()
{
CreateTimer(600.0, Timer_ChangeHSOnly, _, TIMER_REPEAT);
}

public Action Timer_ChangeHSOnly(Handle timer)
{
PrintCenterTextAll("Headshot Mode is Active/Inactive,test test test. %d seconds", 600);
g_hhsonly.SetBool(true);

return Plugin_Continue;

}
__________________
http://forum.iplay.bg/
3agopka is offline
Send a message via Skype™ to 3agopka
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode