AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking trigger_hurt (https://forums.alliedmods.net/showthread.php?t=98428)

shadow.hk 07-25-2009 10:14

Blocking trigger_hurt
 
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 :)

DarkGod 07-25-2009 10:24

Re: Blocking trigger_hurt
 
Isn't that done in Surf Olympics?
I suggest taking a look at it.

Arkshine 07-25-2009 10:25

Re: Blocking trigger_hurt
 
Try to use register_touch( "trigger_hurt", "player", "BlockTrigger" ); and return PLUGIN_HANDLED;

shadow.hk 07-25-2009 10:32

Re: Blocking trigger_hurt
 
Quote:

Originally Posted by Arkshine (Post 881411)
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.

Arkshine 07-25-2009 10:33

Re: Blocking trigger_hurt
 
By the way, why don't you remove trigger_hurt entity ?

shadow.hk 07-25-2009 12:46

Re: Blocking trigger_hurt
 
Yep, worked fine... Must have done it wrong before. Thanks :)

shadow.hk 07-25-2009 12:47

Re: Blocking trigger_hurt
 
Quote:

Originally Posted by Arkshine (Post 881416)
By the way, why don't you remove trigger_hurt entity ?

Because I need it for surf.


All times are GMT -4. The time now is 18:30.

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