Raised This Month: $208 Target: $400
 52% 

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 , 21:47   Re: End round protect player
Reply With Quote #11

Nice.
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-20-2017 , 13: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 13:53.
GoRiLliAz is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-21-2017 , 06:41   Re: End round protect player
Reply With Quote #13

Which bomb? C4?
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-21-2017 , 07: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 , 08: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
}
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-21-2017 , 12: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 , 04:53   Re: End round protect player
Reply With Quote #17

Alright.
__________________
Problem with ZP?
ZP Helper!
zmd94 is offline
GoRiLliAz
Senior Member
Join Date: May 2013
Old 12-25-2017 , 16: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-26-2017 , 00:26   Re: End round protect player
Reply With Quote #19

Nice.
__________________
Problem with ZP?
ZP Helper!
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 19:32.


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