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

Block Trigger_hurt when start new round


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-06-2016 , 13:20   Re: Block Trigger_hurt when start new round
Reply With Quote #2

You want them blocked for a period of time or always?
__________________
HamletEagle is online now
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 10-07-2016 , 07:21   Re: Block Trigger_hurt when start new round
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
You want them blocked for a period of time or always?
I have zombie escape server.. trigger_hurt triggered at the end of the tour..

but.. trigger_hurt triggered immediately after.. when start a new round, death all players by trigger_hurt

Sorry my english bad
__________________
The Professional is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-07-2016 , 08:46   Re: Block Trigger_hurt when start new round
Reply With Quote #4

Post the plugin you are using.
__________________
HamletEagle is online now
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 10-07-2016 , 09:13   Re: Block Trigger_hurt when start new round
Reply With Quote #5

Can you give a map for example?
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Old 10-08-2016, 05:31
The Professional
This message has been deleted by The Professional.
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 10-08-2016 , 06:28   Re: Block Trigger_hurt when start new round
Reply With Quote #7

I want only:

trigger_hurt are blocked until the next trigger trigger_hurt

This possible?


PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "zp_trigger_hurt_block"
#define VERSION "1.0"
#define AUTHOR "MSS"

new new_round 0
new Float:olumsuzlukSuresi 10.0

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event"HLTV""EventNewRound""a""1=0""2=0" )
    
RegisterHam(Ham_TakeDamage"player""player_damage")
}

public 
EventNewRound()
{
    
new_round 1
    set_task
(olumsuzlukSuresi"GlobalGodmodeOff")
}

public 
GlobalGodmodeOff()
{
    
new_round 0
}

public 
player_damage(thisidinflictoridattackerFloat:damagedamagebits) {
    if(
new_round) return HAM_SUPERCEDE

    
return HAM_IGNORED

__________________
The Professional is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 10-08-2016 , 07:10   Re: Block Trigger_hurt when start new round
Reply With Quote #8

This was fixed in regamedll yesterday. https://github.com/s1lentq/ReGameDLL...78f62fac794b06
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 10-08-2016 , 07:27   Re: Block Trigger_hurt when start new round
Reply With Quote #9

Quote:
Originally Posted by PRoSToTeM@ View Post
This was fixed in regamedll yesterday. https://github.com/s1lentq/ReGameDLL...78f62fac794b06
This looks like a source code and is not related to plugins, or is it? Can we adapt this fix to a plugin source? Our problem is that an update(?) arrived to the server by the ultimate administrator and then this problem started to happen. The admin is not going to help us and he doesn't even care. If trigger_hurt is going to be triggered and at that moment the round ends, players will die at the very beginning of the next round. This is OK but it doesn't stop. Trigger_hurt remains stuck at an impulsed state so it constantly kills players just after respawn, beginning of death cycle. Is the code you showed what fixes that? If so, can you guide us how we could achieve this fix on plugin side? Thank you sir
__________________
The Professional is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 10-08-2016 , 10:04   Re: Block Trigger_hurt when start new round
Reply With Quote #10

Quote:
Originally Posted by The Professional View Post
how we could achieve this fix on plugin side?
Better install regamedll.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
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 05:12.


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