View Single Post
maningrey
Member
Join Date: Sep 2014
Location: Farswitch Newton 1
Old 09-10-2018 , 06:24   Re: [CS:GO] GOKZ (v1.2.0, 2018/09/09)
Reply With Quote #10

Code:
public void Zone_OnClientLeave(int client, const char[] zone)
{
	if(StrContains(zone, "[zone name_1]", false) == 0)
	{
		GOKZ_StartTimer(client, 0);
	}
}



public void Zone_OnClientEntry(int client, const char[] zone)
{
	if(StrContains(zone, "[zone name_2]", false) == 0)
	{
		GOKZ_EndTimer(client, 0);
	}

	if(StrContains(zone, "[zone name_1]", false) == 0)
	{
			
		TimerStop(client);
	}
}
Im very bad at this, sorry. With regards to https://forums.alliedmods.net/showthread.php?p=2023591, how could one start the timer by leaving the zone and have it successfully finish also?
maningrey is offline