Raised This Month: $91 Target: $400
 22% 

Play during freeze time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MihailoZ
Member
Join Date: Aug 2013
Old 09-20-2019 , 11:21   Play during freeze time
Reply With Quote #1

Hello,

can I somehow make round start at 0:0 even freeze time is 30 seconds? I want players to be able to move even freeze time is counting.
__________________
mhvtnns

Last edited by MihailoZ; 09-20-2019 at 11:22.
MihailoZ is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-20-2019 , 11:58   Re: Play during freeze time
Reply With Quote #2

Set freezetime to 0 and use FL_FROZEN for 30 secs?
__________________
KZ Public Autocup
PrimeKZ


My blog:
http://primekz.xyz/ (not entirely finished yet)
JocAnis is offline
MihailoZ
Member
Join Date: Aug 2013
Old 09-20-2019 , 12:39   Re: Play during freeze time
Reply With Quote #3

Quote:
Originally Posted by JocAnis View Post
Set freezetime to 0 and use FL_FROZEN for 30 secs?
Elaborate please.
__________________
mhvtnns
MihailoZ is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-20-2019 , 12:47   Re: Play during freeze time
Reply With Quote #4

Something like this:
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "Frozen"
#define VERSION "1.0"
#define AUTHOR "ronaldinho"


public plugin_init() 
{
	register_plugin( PLUGIN, VERSION, AUTHOR )
	
	register_event( "HLTV", "event_new_round", "a", "1=0", "2=0" ) 
}
public event_new_round()
{
	set_task( 0.1, "froze_them" )
}
public froze_them()
{
	for( new id = 1; id <= get_maxplayers(); id++ )
	{
		if( !is_user_connected( id ) )
			continue
		
		remove_task( id + 333 )
		
		set_pev( id, pev_flags, pev( id, pev_flags) | FL_FROZEN )
		
		set_task( 30.0, "unfreeze", id + 333 )
	}
}
public unfreeze( task )
{
	new id = task - 333
	set_pev( id, pev_flags, pev( id, pev_flags ) & ~FL_FROZEN )
}
public client_disconnect( id )
{
	remove_task( id + 333 )
}
if you are using 1.8.3 / 1.9.0 use client_disconnected( id )
__________________
KZ Public Autocup
PrimeKZ


My blog:
http://primekz.xyz/ (not entirely finished yet)
JocAnis is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-20-2019 , 21:09   Re: Play during freeze time
Reply With Quote #5

http://www.amxmod.net/forum/showthread.php?tid=246
__________________
EFFx is offline
Send a message via Skype™ to EFFx
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-20-2019 , 21:57   Re: Play during freeze time
Reply With Quote #6

Then i totally missunderstood the request lol
__________________
KZ Public Autocup
PrimeKZ


My blog:
http://primekz.xyz/ (not entirely finished yet)
JocAnis is offline
Reply


Thread Tools
Display Modes

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 07:03.


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