Thread: Timer problems
View Single Post
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 06-16-2015 , 07:37   Re: Timer problems
Reply With Quote #3

Code:
public Action:Event_Round_Start(Handle:event, const String:name[], bool:dontBroadcast)
{
	for (new i = 1; i <= MaxClients; i++)
	{
		if(IsClientInGame(i) && IsPlayerAlive(i))
		{
			SetEntProp(i, Prop_Data, "m_takedamage", 0, 1);
		}
	}
	
	CreateTimer(60.0, GodOff);
}

public Action:GodOff(Handle:timer)
{
	for(new i = 1; i <= MaxClients; i++)
	{
		SetEntProp(i, Prop_Data, "m_takedamage", 2, 1);
	}
	
	CreateTimer(90.0, GiveBeacon);
}

public Action:GiveBeacon(Handle:timer)
{
	ServerCommand("sm_beacon @all");
	
	CreateTimer(90.0, blabla...);
}
Not sure what you're trying to do but that's what I see.
Drixevel is offline