Raised This Month: $ Target: $400
 0% 

Blocking trigger_hurt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-25-2009 , 10:14   Blocking trigger_hurt
Reply With Quote #1

Wondering how to do this via engine or hamsandwich. When a player touchs a trigger_hurt i want it block them from dying and respawn them straight away.

Any help would be appreciated
shadow.hk is offline
Send a message via MSN to shadow.hk
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-25-2009 , 10:24   Re: Blocking trigger_hurt
Reply With Quote #2

Isn't that done in Surf Olympics?
I suggest taking a look at it.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-25-2009 , 10:25   Re: Blocking trigger_hurt
Reply With Quote #3

Try to use register_touch( "trigger_hurt", "player", "BlockTrigger" ); and return PLUGIN_HANDLED;
__________________
Arkshine is offline
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-25-2009 , 10:32   Re: Blocking trigger_hurt
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Try to use register_touch( "trigger_hurt", "player", "BlockTrigger" ); and return PLUGIN_HANDLED;
I thought I tried that before, but I'll try again. I'll let you know in a few minutes.
shadow.hk is offline
Send a message via MSN to shadow.hk
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-25-2009 , 10:33   Re: Blocking trigger_hurt
Reply With Quote #5

By the way, why don't you remove trigger_hurt entity ?
__________________
Arkshine is offline
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-25-2009 , 12:46   Re: Blocking trigger_hurt
Reply With Quote #6

Yep, worked fine... Must have done it wrong before. Thanks
shadow.hk is offline
Send a message via MSN to shadow.hk
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 07-25-2009 , 12:47   Re: Blocking trigger_hurt
Reply With Quote #7

Quote:
Originally Posted by Arkshine View Post
By the way, why don't you remove trigger_hurt entity ?
Because I need it for surf.
shadow.hk is offline
Send a message via MSN to shadow.hk
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 18:31.


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