AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [Help] Headshot CFG mode (https://forums.alliedmods.net/showthread.php?t=306688)

3agopka 04-10-2018 08:43

[Help] Headshot CFG mode
 
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;

}


Eylon.A 04-10-2018 11:10

Re: [Help] Headshot CFG mode
 
euqen mutnemele cenoD .susir ropmet cen ,sore tirerdneh non euqsetnelleP .tare euqitsirt tu ,susir sucnohr ni nI .sum sulucidir rutecsan ,setnom tneirutrap sid singam te subitanep euqotan suirav icrO .mutnemidnoc taiguef tipicsus tnesearP

3agopka 04-10-2018 13:00

Re: [Help] Headshot CFG mode
 
messages its not working

Eylon.A 04-10-2018 15:12

Re: [Help] Headshot CFG mode
 
non etatupluv eugua sitrobol ni ,mine tipicsus tauqesnoc euqsiuQ .sullet teeroal eativ cenoD .mes ranivlup taiguef ,tege euqsetnellep silucai euqsirelecs ,lsin icro n

3agopka 04-11-2018 12:00

Re: [Help] Headshot CFG mode
 
again not working
if you not understand me - when this cvar "dm_headshot_only" is 1 i want text message on server headshot only is actinve , when is 0 - headshot mode is inactive .


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

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