Raised This Month: $12 Target: $400
 3% 

Knife Bounty + Secure (v1.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   HamletEagle (36)
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-10-2017 , 16:55   Knife Bounty + Secure (v1.5)
Reply With Quote #1

.: Knife Bounty + Secure v1.5 :.

.: Description :.

When you knife a person, you will take his money (If not secured), if he is secured, you won't be able to take his money. To secure your money type /secure , it will cost you some money (Controlled by CVAR). Secure will last until Death/ New Spawn.

.: CVARs :.
Quote:
knife_bounty_enabled 1 // Plugin enabled <0|1> - <OFF|ON>
knife_bounty_secure 1 // Secure enabled <0|1> - <OFF|ON>
knife_bounty_secure_price 1200 // Secure price
.: Changelog :.
Spoiler


.: Requirements :.
Spoiler


.: Credits :.
Spoiler
Attached Files
File Type: sma Get Plugin or Get Source (knife_bounty.sma - 1188 views - 3.7 KB)
File Type: txt knife_bounty.txt (4.8 KB, 500 views)
__________________

Last edited by edon1337; 09-18-2018 at 13:15. Reason: Updated v1.5 [9/18/2018]
edon1337 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-10-2017 , 16:55   Re: Knife Bounty + Secure
Reply With Quote #2

Could Someone Please Translate To Their Language , Thanks.
Quote:
[en]

VICTIM_SECURED = [Knife Bounty] Victim Was Secured !
VICTIM_DIDNT_LOSE = [Knife Bounty] You Didn't Lose Your Money Because You Was Secured !
VICTIM_MONEY_LOW = [Knife Bounty] Victim's Money Was Low, You Won Nothing !
ATTACKER_BOUNTY = [Knife Bounty] You've Taken %s 's Bounty Of $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s Has Taken Your Bounty Of $%d !
SECURE_AD = [Knife Bounty] To Secure Your Money Type /secure !
CANT_SECURE_DEAD = [Knife Bounty] You Can't Secure While Dead !
SECURE_DISABLED = [Knife Bounty] Securing Is Currently Disabled !
NOT_ENOUGH_MONEY = [Knife Bounty] Not Enough Money To Secure !
SECURED_MONEY = [Knife Bounty] You Paid $%d To Secure Your Money, You Won't Lose Your Money If You Get Knifed !
__________________

Last edited by edon1337; 03-10-2017 at 17:01.
edon1337 is offline
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 03-10-2017 , 17:18   Re: Knife Bounty + Secure
Reply With Quote #3

[de]

Code:
VICTIM_SECURED = [Knife Bounty] Opfer wurde gesichert!
VICTIM_DIDNT_LOSE = [Knife Bounty] Du hast dein Geld nicht verloren, weil du gesichert bist!
VICTIM_MONEY_LOW = [Knife Bounty] Das Geld des Opfers war zu niedrig, du hast nichts gewonnen!
ATTACKER_BOUNTY = [Knife Bounty] Du hast das Kopfgeld %s 'von  $%d genommen !
VICTIM_LOST_MONEY = [Knife Bounty] %s hat das Kopfgeld von $%d genommen !
SECURE_AD = [Knife Bounty] Um dein Geld zu sichern benutze /secure !
CANT_SECURE_DEAD = [Knife Bounty] Du kannst dein Geld nicht sichern wenn du nicht tot bist !
SECURE_DISABLED = [Knife Bounty] Das Sichern ist derzeit nicht mφglich !
NOT_ENOUGH_MONEY = [Knife Bounty] Du hast nicht genug Geld um es zu sichern !
SECURED_MONEY = [Knife Bounty] Du hast $%d gezahlt um dein Geld zu sichern. Du wirst dein Geld nicht verlieren wenn du gemessert wirst.
:-)
Godofwar is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-10-2017 , 17:28   Re: Knife Bounty + Secure
Reply With Quote #4

Quote:
Originally Posted by Godofwar View Post
[de]

Code:
VICTIM_SECURED = [Knife Bounty] Opfer wurde gesichert!
VICTIM_DIDNT_LOSE = [Knife Bounty] Du hast dein Geld nicht verloren, weil du gesichert bist!
VICTIM_MONEY_LOW = [Knife Bounty] Das Geld des Opfers war zu niedrig, du hast nichts gewonnen!
ATTACKER_BOUNTY = [Knife Bounty] Du hast das Kopfgeld %s 'von  $%d genommen !
VICTIM_LOST_MONEY = [Knife Bounty] %s hat das Kopfgeld von $%d genommen !
SECURE_AD = [Knife Bounty] Um dein Geld zu sichern benutze /secure !
CANT_SECURE_DEAD = [Knife Bounty] Du kannst dein Geld nicht sichern wenn du nicht tot bist !
SECURE_DISABLED = [Knife Bounty] Das Sichern ist derzeit nicht mφglich !
NOT_ENOUGH_MONEY = [Knife Bounty] Du hast nicht genug Geld um es zu sichern !
SECURED_MONEY = [Knife Bounty] Du hast $%d gezahlt um dein Geld zu sichern. Du wirst dein Geld nicht verlieren wenn du gemessert wirst.
:-)
Thanks, Credits added
__________________
edon1337 is offline
F0RCE
Senior Member
Join Date: Oct 2010
Old 03-10-2017 , 21:01   Re: Knife Bounty + Secure
Reply With Quote #5

Code:
[pl]
VICTIM_SECURED = [Knife Bounty] Ofiara byla ubezpieczona !
VICTIM_DIDNT_LOSE = [Knife Bounty] Nie straciles pieniedzy poniewaz byles ubezpieczony !
VICTIM_MONEY_LOW = [Knife Bounty] Ofiara miala niewystarczajaca ilosc pieniedzy. Nic nie dostales ! 
ATTACKER_BOUNTY = [Knife Bounty] Zabrales %s nagrody graczowi $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s zabral Ci $%d pieniedzy !
SECURE_AD = [Knife Bounty] Aby ubezpieczyc swoje pieniadze wpisz /secure !
CANT_SECURE_DEAD = [Knife Bounty] Nie mozesz ubezpieczyc pieniedzy kiedy nie zjesz  !
SECURE_DISABLED = [Knife Bounty] Ubezpieczenie pieniedzy jest aktualnie wylaczone !
NOT_ENOUGH_MONEY = [Knife Bounty] Niewystarczajaca ilosc pieniedzy do ubezpieczenia !
SECURED_MONEY = [Knife Bounty] Zaplaciles $%d kaucji aby zabezpieczyc swoje pieniadze. Nie stracisz ich jezeli zostaniesz zabity z noza !
F0RCE is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2017 , 02:32   Re: Knife Bounty + Secure
Reply With Quote #6

LANG_PLAYER should be used only when you print to all players at the same time. When you print to a specific player, use player id instead.
Use charsmax().
__________________

Last edited by HamletEagle; 03-11-2017 at 02:33.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-11-2017 , 05:30   Re: Knife Bounty + Secure
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
LANG_PLAYER should be used only when you print to all players at the same time. When you print to a specific player, use player id instead.
Use charsmax().
Done. Should I remove the bool g_HasSafety and use bits?

Quote:
Originally Posted by F0RCE View Post
Code:
[pl]
VICTIM_SECURED = [Knife Bounty] Ofiara byla ubezpieczona !
VICTIM_DIDNT_LOSE = [Knife Bounty] Nie straciles pieniedzy poniewaz byles ubezpieczony !
VICTIM_MONEY_LOW = [Knife Bounty] Ofiara miala niewystarczajaca ilosc pieniedzy. Nic nie dostales ! 
ATTACKER_BOUNTY = [Knife Bounty] Zabrales %s nagrody graczowi $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s zabral Ci $%d pieniedzy !
SECURE_AD = [Knife Bounty] Aby ubezpieczyc swoje pieniadze wpisz /secure !
CANT_SECURE_DEAD = [Knife Bounty] Nie mozesz ubezpieczyc pieniedzy kiedy nie zjesz  !
SECURE_DISABLED = [Knife Bounty] Ubezpieczenie pieniedzy jest aktualnie wylaczone !
NOT_ENOUGH_MONEY = [Knife Bounty] Niewystarczajaca ilosc pieniedzy do ubezpieczenia !
SECURED_MONEY = [Knife Bounty] Zaplaciles $%d kaucji aby zabezpieczyc swoje pieniadze. Nie stracisz ich jezeli zostaniesz zabity z noza !
Thanks, Credits Added.
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2017 , 07:26   Re: Knife Bounty + Secure (v1.1)
Reply With Quote #8

Not really, I would say to keep your code simple when you are a beginner. Bits are fine, but the bool is fine too and the difference is trivial.
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-11-2017 , 08:13   Re: Knife Bounty + Secure (v1.1)
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
Not really, I would say to keep your code simple when you are a beginner. Bits are fine, but the bool is fine too and the difference is trivial.
Okay, thanks. Should I add
Code:
public client_putinserver( id ) g_HasSafety[ id ] = false ;
__________________

Last edited by edon1337; 03-11-2017 at 08:15.
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-11-2017 , 09:13   Re: Knife Bounty + Secure (v1.1)
Reply With Quote #10

Yes. Because if x has the bool set to true, x disconnects, y connects and y gets the id of x then the bool will be true for him.
__________________

Last edited by HamletEagle; 03-11-2017 at 09:14.
HamletEagle 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 10:39.


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