Raised This Month: $100 Target: $400
 25% 

[10/02/10] No Hostage Steal


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Exolent[jNr] (178)
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-19-2009 , 07:46   [10/02/10] No Hostage Steal
Reply With Quote #1

No Hostage Steal

Credits :
Kureno - for testing (:
ConnerMcLeod - Ideas for more features
xPaw - Bot idea and fixing some code :p

Information :
This was actually a request from a long time ago, I dont know if it has been made before. The point of this plugin is when someone is running with hostages your teammates cant steal them from you. (for the money)

Cvar :
Code:
nhs_enable                 Default : 1 Turns plugin on or off.
nhs_adminstealonly         Default : 0 Only allows admins to steal.
nhs_nostealfromadmin       Default : 0 Forbid to steal from admins
nhs_message                Default : 1 Enables/Disables information message
Changelog :
Code:
Version 1.0 : Initial Release
Version 1.1 : Added more features
Version 1.2 : Fixed code + Added steal from bots
Modules :
Requires Hamsandwich.

ToDo List :
Euhm maybe add some more features for hostages.

Warning : It might be possible the message appears twice (+use and -use) , tell me if so.
Attached Files
File Type: sma Get Plugin or Get Source (nohoststeal.sma - 1190 views - 1.7 KB)
__________________
I am out of order!

Last edited by grimvh2; 02-10-2010 at 16:39.
grimvh2 is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-19-2009 , 07:54   Re: [19/12/09] No Hostage Steal
Reply With Quote #2

Simple yet useful ^^
Excalibur.007 is offline
DarkSkif
Member
Join Date: Oct 2009
Location: Russia
Old 12-19-2009 , 08:38   Re: [19/12/09] No Hostage Steal
Reply With Quote #3

Nice plugin!!
DarkSkif is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-19-2009 , 08:55   Re: [19/12/09] No Hostage Steal
Reply With Quote #4

You should add a option like, normal player can steal hostages from bots.

Code:
    if(!player)         return HAM_IGNORED;             if(player == id)         return HAM_IGNORED;
Make in one if( )
__________________
xPaw is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-19-2009 , 09:01   Re: [19/12/09] No Hostage Steal
Reply With Quote #5

Grr you and ur stupid small thingys xD
__________________
I am out of order!
grimvh2 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-19-2009 , 09:25   Re: [19/12/09] No Hostage Steal
Reply With Quote #6

Add option to allow admins to steal hostages, and one to prevent admins from being stolen an hostage.
__________________
- tired and retired -
ConnorMcLeod is offline
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 12-19-2009 , 11:05   Re: [19/12/09] No Hostage Steal
Reply With Quote #7

Nice plugin!
Can you add a message that say why you cant steal hostages?
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 12-19-2009 , 19:04   Re: [19/12/09] No Hostage Steal
Reply With Quote #8

Version 1.1 Released
__________________
I am out of order!
grimvh2 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-19-2009 , 19:09   Re: [19/12/09] No Hostage Steal
Reply With Quote #9

Code:
    if(get_pcvar_num(nhs_adminstl) == 1 && !(get_user_flags(id) & ACCES))     {         if(get_pcvar_num(message_on))             client_print(id,print_chat, "[AMXX] Only admins are allowed to steal hostages.")         return HAM_SUPERCEDE;     }
The check is done in wrong place, aint it ? Currently you completely block usage of hostages by normal players xD

Btw you forget about my bots idea
__________________
xPaw is offline
Kureno
Junior Member
Join Date: Nov 2009
Old 12-19-2009 , 19:11   Re: [19/12/09] No Hostage Steal
Reply With Quote #10

Gj Grim, try to add what i told you ^_^
__________________
Coding WebApps (PHP/MYSQL) for plugins
(StandAlone or as plugin for e107 CMS)
PM me


Kureno is offline
Reply


Thread Tools
Display Modes

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 11:44.


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