Raised This Month: $105 Target: $400
 26% 

Extra hostage rescue


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 03-08-2009 , 20:21   Extra hostage rescue
Reply With Quote #1

Extra hostage rescue


Description:
This plugin allow to add extra money and frags for rescuing hostages (for touching and following to Rescue Zone).

Warning! This plugin wont block oryginal extras for hostage rescue!

Tested only in Counter Strike, and will work only on CS.
CVAR's:
PHP Code:
amx_hostage_extras "1" // enable/disable plugin
amx_hostagerescue_money "1000" // Extra money per hostage for rescue
amx_hostagerescue_frags "2" // Extra frags per hostage for rescue
amx_hostagetouch_money "500" // Extra money per hostage for touch 
Requirements:
  • Fakemeta module
Changelog:
1.0: First relase
Attached Files
File Type: sma Get Plugin or Get Source (hostage_rescue_extras.sma - 1883 views - 2.1 KB)
__________________
Join US - custom Zombie Server - Custom Addons:




Last edited by Sn!ff3r; 03-19-2009 at 07:24.
Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-08-2009 , 20:23   Re: Extra hostage rescue
Reply With Quote #2

Another plugin that makes gameplay more fun, good job.

+Karma
BOYSplayCS is offline
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 03-08-2009 , 20:25   Re: Extra hostage rescue
Reply With Quote #3

Ah, i mistake link ;) Requested here -> http://forums.alliedmods.net/showthread.php?t=87229
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 03-08-2009 , 21:31   Re: Extra hostage rescue
Reply With Quote #4

Quote:
Originally Posted by Sn!ff3r View Post
Ah, i mistake link ;) Requested here -> http://forums.alliedmods.net/showthread.php?t=87229
So add credits for the idea o.o
__________________
"There is no knowledge, that is not power"
fezh is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-09-2009 , 06:25   Re: Extra hostage rescue
Reply With Quote #5

Good idea..
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-09-2009 , 06:55   Re: Extra hostage rescue
Reply With Quote #6

I can't believe this wasn't created before.
BOYSplayCS is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 03-09-2009 , 07:27   Re: Extra hostage rescue
Reply With Quote #7

fm_get_user_frags and fm_set_user_frags are included in fakemeta_util
It might be easier if you remove some of the stocks, and #include <fakemeta_util>

Nice plugin
__________________
minimiller is offline
Send a message via MSN to minimiller
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 03-09-2009 , 10:28   Re: Extra hostage rescue
Reply With Quote #8

Quote:
fm_get_user_frags and fm_set_user_frags are included in fakemeta_util
It might be easier if you remove some of the stocks, and #include <fakemeta_util>
Useless.
__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-09-2009 , 12:25   Re: Extra hostage rescue
Reply With Quote #9

Code:
stock fm_get_user_money(id) {     return get_pdata_int(id,OFFSET_CSMONEY,OFFSET_LINUX) } stock fm_get_user_frags(id) {     return pev(id,pev_frags) } stock fm_set_user_frags(id, frags) {     set_pev(id, pev_frags, float(frags)) }
Use a macro for all of these.

I was thinking of making this but i don't like the ideea of adding money. I thought of overriding original amount.
__________________

anakin_cstrike is offline
Satoko
Senior Member
Join Date: Oct 2008
Location: Germany
Old 03-14-2009 , 10:22   Re: Extra hostage rescue
Reply With Quote #10

well it works on cz too by the way.
__________________

Satoko 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 15:31.


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