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

Play during freeze time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MihailoZ
Member
Join Date: Aug 2013
Old 09-20-2019 , 10: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 10:22.
MihailoZ is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-20-2019 , 10: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 (in progress...) - not active (dec 2022)
JocAnis is offline
MihailoZ
Member
Join Date: Aug 2013
Old 09-20-2019 , 11: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 , 11: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 (in progress...) - not active (dec 2022)
JocAnis is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 09-20-2019 , 20:09   Re: Play during freeze time
Reply With Quote #5

http://www.amxmod.net/forum/showthread.php?tid=246
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 09-20-2019 , 20: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 (in progress...) - not active (dec 2022)
JocAnis is offline
Reply



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 14:09.


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