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

Solved End round protect player


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-18-2017 , 20:47   Re: End round protect player
Reply With Quote #11

Nice.
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-20-2017 , 12:52   Re: End round protect player
Reply With Quote #12

There's a little trouble, when the bomb Explodes no one dies.

Can we start the godmode right after the explosion?
__________________


Last edited by GoRiLliAz; 12-20-2017 at 12:53.
GoRiLliAz is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-21-2017 , 05:41   Re: End round protect player
Reply With Quote #13

Which bomb? C4?
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-21-2017 , 06:34   Re: End round protect player
Reply With Quote #14

Yes C4
__________________

GoRiLliAz is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-21-2017 , 07:34   Re: End round protect player
Reply With Quote #15

Try this:

Code:
#include <amxmodx>
#include <fun>

new bool:g_bExplode

public plugin_init() 
{
	register_plugin("End Round Protect", "0.1", "zmd94")
	
	register_logevent("RoundStart", 2, "1=Round_Start")
	register_logevent("Bomb_Explode", 6, "3=Target_Bombed")
	register_logevent("RoundEnd", 2, "1=Round_End") 
}

public RoundStart()
{
	g_bExplode = false
	
	new iPlayers[32], iPlayerCount, i, iId
	get_players(iPlayers, iPlayerCount, "a") 
	for(i = 0; i < iPlayerCount; i++)
	{
		iId = iPlayers[i]
		set_user_godmode(iId, 0)
	}
}

public RoundEnd()
{
	if(!g_bExplode)
	{
		new iPlayers[32], iPlayerCount, i, iId
		get_players(iPlayers, iPlayerCount, "a") 
		for(i = 0; i < iPlayerCount; i++)
		{
			iId = iPlayers[i]
			set_user_godmode(iId, 1)
		}
	}
}

public Bomb_Explode()
{
	g_bExplode = true
}
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-21-2017 , 11:04   Re: End round protect player
Reply With Quote #16

i try tomorrow
__________________

GoRiLliAz is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-22-2017 , 03:53   Re: End round protect player
Reply With Quote #17

Alright.
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-25-2017 , 15:48   Re: End round protect player
Reply With Quote #18

For now, no problem ! Thanks
__________________

GoRiLliAz is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-25-2017 , 23:26   Re: End round protect player
Reply With Quote #19

Nice.
zmd94 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 04:21.


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