AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Knife Bounty + Secure (v1.5) (https://forums.alliedmods.net/showthread.php?t=294896)

edon1337 03-10-2017 16:55

Knife Bounty + Secure (v1.5)
 
2 Attachment(s)
.: 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

edon1337 03-10-2017 16:55

Re: Knife Bounty + Secure
 
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 !

Godofwar 03-10-2017 17:18

Re: Knife Bounty + Secure
 
[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.

:-)

edon1337 03-10-2017 17:28

Re: Knife Bounty + Secure
 
Quote:

Originally Posted by Godofwar (Post 2502504)
[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 :)

F0RCE 03-10-2017 21:01

Re: Knife Bounty + Secure
 
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 !


HamletEagle 03-11-2017 02:32

Re: Knife Bounty + Secure
 
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().

edon1337 03-11-2017 05:30

Re: Knife Bounty + Secure
 
Quote:

Originally Posted by HamletEagle (Post 2502573)
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 (Post 2502541)
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.

HamletEagle 03-11-2017 07:26

Re: Knife Bounty + Secure (v1.1)
 
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.

edon1337 03-11-2017 08:13

Re: Knife Bounty + Secure (v1.1)
 
Quote:

Originally Posted by HamletEagle (Post 2502624)
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 ;

HamletEagle 03-11-2017 09:13

Re: Knife Bounty + Secure (v1.1)
 
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.


All times are GMT -4. The time now is 18:35.

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