Raised This Month: $ Target: $400
 0% 

Bomb and Hostage Events


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-09-2008 , 21:16   Bomb and Hostage Events
Reply With Quote #1

I need some events regarding to Bombs and Hostages.

Here is what I need:
- When a Terrorist dies while planting, but before it is planted.
- When a Counter-Terrorist is killed while trying to rescue a hostage.
- When a Counter-Terrorist rescues one hostage.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Old 07-10-2008, 06:56
Alka
This message has been deleted by Alka. Reason: Useless for X-olent
DA
Veteran Member
Join Date: Nov 2005
Location: Germany/Münster
Old 07-10-2008 , 11:00   Re: Bomb and Hostage Events
Reply With Quote #2

Right Alka. Here are some event's:

Code:
register_logevent ( "on_PlayerAction", 3, "1=triggered" ); // Called on certain player events (from wc3ft) public on_PlayerAction() {     new sArg[64], sAction[64], sName[64];     new iUserId, id;     read_logargv( 0,sArg,64 );     read_logargv( 2,sAction,64 );     parse_loguser( sArg,sName,64,iUserId );     id = find_player( "k", iUserId );     if ( id == 0 )     {         return;     }     // Spawned with the bomb     if ( equal( sAction, "Spawned_With_The_Bomb" ) )     {         // Spawned with the bomb     }     // Dropped bomb     else if ( equal( sAction, "Dropped_The_Bomb" ) )     {         // Dropped bomb     }     // Picked up bomb     else if ( equal( sAction, "Got_The_Bomb" ) )     {         // Picked up bomb     }     // Hostage touched     else if ( equal( sAction, "Touched_A_Hostage" ) )     {         // Hostage touched     }     // Hostage rescued     else if ( equal( sAction, "Rescued_A_Hostage" ) )     {         // Hostage rescued     }     // Hostage killed     else if ( equal( sAction, "Killed_A_Hostage" ) )     {         // Hostage killed     }     // VIP spawn     else if ( equal( sAction, "Became_VIP" ) )     {         // VIP spawn     }     // VIP escaped     else if ( equal( sAction, "Escaped_As_VIP" ) )     {         // VIP escaped     }     // defuse with kit     else if ( equal( sAction, "Begin_Bomb_Defuse_With_Kit" ) )     {         // defuse with kit     } }
__________________
DA is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-11-2008 , 14:46   Re: Bomb and Hostage Events
Reply With Quote #3

http://forums.alliedmods.net/showthread.php?t=40164
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-11-2008 , 15:47   Re: Bomb and Hostage Events
Reply With Quote #4

Thanks to DA and connorr!
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-11-2008 , 17:08   Re: Bomb and Hostage Events
Reply With Quote #5

lol, that are just the events that you must use to set the index of player to var, you still must use the way i said. -.-' except for the 3rd request, but w/e.
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 07-11-2008 at 17:11.
Alka is offline
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 04-26-2012 , 04:16   Re: Bomb and Hostage Events
Reply With Quote #6

Well after 4 years, how can i see if someone stopped using a hostage?
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))
ProIcons is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-26-2012 , 04:34   Re: Bomb and Hostage Events
Reply With Quote #7

Don't remember if there is an event, but you can check if the hostage is not following the player.

You can do something easily with http://www.amxmodx.org/funcwiki.php?...tage&go=search
__________________
Arkshine is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 04-26-2012 , 09:19   Re: Bomb and Hostage Events
Reply With Quote #8

Never expected Exolent would ever post in this section
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 04-26-2012 , 10:56   Re: Bomb and Hostage Events
Reply With Quote #9

Did you see the date of his post? He probably just started scripting.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-26-2012 , 11:02   Re: Bomb and Hostage Events
Reply With Quote #10

I was coding around the time that I joined these forums, so this thread is about a year and a half after I started.
I remember making some sort of XP mod for my public server at the time.

As for your question, there really is no "event" for when a hostage stops following a player.
There is:
- when a player presses +use on a hostage to leave the hostage
- when a hostage is rescued/killed so it can no longer follow the player
- when the round ends and starts, thus the hostage is set to no longer follow players
- some weird time when a hostage cannot follow a player due to the map structure (ramps, ladders, steps, etc.) that it just decides to wait for player to come back

The first 3 are easy to do, but the last one would require looking into the SDK on how that works.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 04:30.


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