Raised This Month: $ Target: $400
 0% 

How do i check if a player is rescuing an hostage?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 16:21   How do i check if a player is rescuing an hostage?
Reply With Quote #1

Read title.

Thanks
-zacky
zacky is offline
Send a message via Skype™ to zacky
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-18-2009 , 18:20   Re: How do i check if a player is rescuing an hostage?
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=182
__________________
alan_el_more is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-19-2009 , 04:34   Re: How do i check if a player is rescuing an hostage?
Reply With Quote #3

No it's not that.
zacky is offline
Send a message via Skype™ to zacky
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-19-2009 , 04:38   Re: How do i check if a player is rescuing an hostage?
Reply With Quote #4

http://forums.alliedmods.net/showthr...hlight=hostage
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-19-2009 , 04:56   Re: How do i check if a player is rescuing an hostage?
Reply With Quote #5

I'd use something like this:
Code:
#include <amxmodx> #include <hamsandwich>   new g_bIsRescuing[33];   public plugin_init() {         RegisterHam(Ham_Use, "hostage_entity", "fwdHostageUse", 1);         RegisterHam(Ham_Use, "monster_scientist", "fwdHostageUse", 1); }   public client_disconnect(iCl)         g_bIsRescuing[iCl] = false;   public fwdHostageUse(iEnt, iCl)         if (is_user_alive(iCl))                 g_bIsRescuing[iCl] = !g_bIsRescuing[iCl];
Also some checks like if players has died or spawned should be made.
__________________
hleV is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-19-2009 , 12:52   Re: How do i check if a player is rescuing an hostage?
Reply With Quote #6

Thank you Exolent, that was what i needed.
zacky is offline
Send a message via Skype™ to zacky
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 15:34.


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