Raised This Month: $213 Target: $400
 53% 

Knife Bounty + Secure (v1.5)


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-11-2017 , 10:25   Re: Knife Bounty + Secure (v1.1)
Reply With Quote #11

Code:
[mk]
VICTIM_SECURED = [Knife Bounty] Zhrtvata beshe osigurana !
VICTIM_DIDNT_LOSE = [Knife Bounty] Ne gi zagubi parite zatoa shto beshe osiguran !
VICTIM_MONEY_LOW = [Knife Bounty] Zhrtvata imashe malku pari. Ne dobi nishto od nego !
ATTACKER_BOUNTY = [Knife Bounty] Zema nagradata na %s od $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s ja zema tvojata nagrada od $%d !
SECURE_AD = [Knife Bounty] Za da gi osigurash tvoite pari, napishi /secure !
CANT_SECURE_DEAD = [Knife Bounty] Ne mozesh da se osigurash dodeka si mrtov !
SECURE_DISABLED = [Knife Bounty] Osiguruvanjeto momentalno e isklucheno !
NOT_ENOUGH_MONEY = [Knife Bounty] Nemash dovolno pari za osiguruvanje !
SECURED_MONEY = [Knife Bounty] Plati $%d za osigiruvanje na parite i istite nema da gi izgubish ako te zakolat !
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-11-2017 , 11:14   Re: Knife Bounty + Secure (v1.1)
Reply With Quote #12

Quote:
Originally Posted by OciXCrom View Post
Code:
[mk]
VICTIM_SECURED = [Knife Bounty] Zhrtvata beshe osigurana !
VICTIM_DIDNT_LOSE = [Knife Bounty] Ne gi zagubi parite zatoa shto beshe osiguran !
VICTIM_MONEY_LOW = [Knife Bounty] Zhrtvata imashe malku pari. Ne dobi nishto od nego !
ATTACKER_BOUNTY = [Knife Bounty] Zema nagradata na %s od $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s ja zema tvojata nagrada od $%d !
SECURE_AD = [Knife Bounty] Za da gi osigurash tvoite pari, napishi /secure !
CANT_SECURE_DEAD = [Knife Bounty] Ne mozesh da se osigurash dodeka si mrtov !
SECURE_DISABLED = [Knife Bounty] Osiguruvanjeto momentalno e isklucheno !
NOT_ENOUGH_MONEY = [Knife Bounty] Nemash dovolno pari za osiguruvanje !
SECURED_MONEY = [Knife Bounty] Plati $%d za osigiruvanje na parite i istite nema da gi izgubish ako te zakolat !
Thanks, Credits added.

Quote:
Originally Posted by HamletEagle View Post
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.
Done. Thanks
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 03-11-2017 , 19:51   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #13

Brazilian Portuguese
Code:
[bp]
VICTIM_SECURED = [Olha-a-Faca] A Vitima tinha seguro contra facadas!
VICTIM_DIDNT_LOSE = [Olha-a-Faca] Voce nao perdeu o seu dinheiro por que tinha seguro contra facadas!
VICTIM_MONEY_LOW = [Olha-a-Faca] A vitima estava durinha da silva. Voce nao ganhou nenhum dinheiro extra! 
ATTACKER_BOUNTY = [Olha-a-Faca] Voce pegou de %s a recompensa de $%d!
VICTIM_LOST_MONEY = [Olha-a-Faca] %s pegou sua recompensa de $%d!
SECURE_AD = [Olha-a-Faca] Para proteger seu dinheiro contra esfaqueadores, digite /secure
CANT_SECURE_DEAD = [Olha-a-Faca] Voce nao pode comprar um seguro quando esta morto!
SECURE_DISABLED = [Olha-a-Faca] A venda de seguros estah desativada!
NOT_ENOUGH_MONEY = [Olha-a-Faca] Voce estah muito duro para comprar um seguro!
SECURED_MONEY = [Olha-a-Faca] Voce pagou $%d para proteger o seu dinheiro. Esfaqueadores nao poderao pegar seu dinheiro!
__________________
Plugin: Sublime Text Studio , Galileo
Multi-Mod: Manager / Plugin / Server

Help the AlliedModders' website stay online!

Last edited by addons_zz; 03-11-2017 at 22:59.
addons_zz is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-12-2017 , 06:17   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #14

Quote:
Originally Posted by addons_zz View Post
Brazilian Portuguese
Code:
[bp]
VICTIM_SECURED = [Olha-a-Faca] A Vitima tinha seguro contra facadas!
VICTIM_DIDNT_LOSE = [Olha-a-Faca] Voce nao perdeu o seu dinheiro por que tinha seguro contra facadas!
VICTIM_MONEY_LOW = [Olha-a-Faca] A vitima estava durinha da silva. Voce nao ganhou nenhum dinheiro extra! 
ATTACKER_BOUNTY = [Olha-a-Faca] Voce pegou de %s a recompensa de $%d!
VICTIM_LOST_MONEY = [Olha-a-Faca] %s pegou sua recompensa de $%d!
SECURE_AD = [Olha-a-Faca] Para proteger seu dinheiro contra esfaqueadores, digite /secure
CANT_SECURE_DEAD = [Olha-a-Faca] Voce nao pode comprar um seguro quando esta morto!
SECURE_DISABLED = [Olha-a-Faca] A venda de seguros estah desativada!
NOT_ENOUGH_MONEY = [Olha-a-Faca] Voce estah muito duro para comprar um seguro!
SECURED_MONEY = [Olha-a-Faca] Voce pagou $%d para proteger o seu dinheiro. Esfaqueadores nao poderao pegar seu dinheiro!
Thanks, credits added, I replaced Olha-a-Face with Knife Bounty just like in the rest of translations
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-12-2017 , 11:26   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #15

Why? It's a translation, so why change it?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-12-2017 , 11:40   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #16

Quote:
Originally Posted by OciXCrom View Post
Why? It's a translation, so why change it?
It changes the identity of the plugin.
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 03-18-2017 , 18:16   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #17

gr8 idea i haven't seen anything like this made yet. good work.
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Visinescu
Senior Member
Join Date: Dec 2015
Location: England now,Home Romania
Old 03-18-2017 , 22:28   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #18

Romanian
Code:
[ro] 

VICTIM_SECURED = [Knife Bounty] Victima a fost Securizata !
VICTIM_DIDNT_LOSE = [Knife Bounty] Nu ai pierdut banii deoarece ai fost Securizat !
VICTIM_MONEY_LOW = [Knife Bounty] Banii victimei erau scazuti, Nu ai castigat nimic ! 
ATTACKER_BOUNTY = [Knife Bounty] Ai luat Recomenpsa lui %s de $%d !
VICTIM_LOST_MONEY = [Knife Bounty] %s Ti-a luat Recompensa de $%d !
SECURE_AD = [Knife Bounty] Sa-ti securizezi banii scrie /secure !
CANT_SECURE_DEAD = [Knife Bounty] Nu poti sa te securizezi in timp ce esti mort !
SECURE_DISABLED = [Knife Bounty] Securitatea este momentan oprita !
NOT_ENOUGH_MONEY = [Knife Bounty] Nu ai destui bani sa te securizezi !
SECURED_MONEY = [Knife Bounty] Ai platit $%d sa-ti securizezi banii, Nu-ti vei pierde banii daca esti injunghiat !
Visinescu is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-19-2017 , 06:38   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #19

PHP Code:
if( ! get_pcvar_numg_iCvars] ) ) 
    return 
HAM_IGNORED ;
    
    if( ! ( 
is_valid_connectedattacker ) || is_valid_connectedvictim ) ) )
    return 
HAM_IGNORED ;
    
    if( 
get_user_weaponattacker ) != CSW_KNIFE 
    return 
HAM_IGNORED ;

    if( 
attacker == victim )
    return 
HAM_IGNORED 
Indent your code properly. It's nice to always use { } , even for single line, but that's only my opinion. Do it how you want, but indent properly.

PHP Code:
if( attacker == victim )
return 
HAM_IGNORED 
This check looks reduntant. You can't kill yourself with the knife.

I would add a is_user_connected check in client_putinserver.

PHP Code:
if( ! ( get_pcvar_numg_iCvars] ) ) ) 
Way too many spaces. Without extra spaces code looks better and it's easier to read:
PHP Code:
if(!get_pcvar_num(g_iCvars[1])) 
Also notice that the ( after ! is not needed.
__________________
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-19-2017 , 09:44   Re: Knife Bounty + Secure (v1.2)
Reply With Quote #20

Quote:
Originally Posted by HamletEagle View Post
Indent your code properly. It's nice to always use { } , even for single line, but that's only my opinion. Do it how you want, but indent properly.
It's already indented?

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
if( ! ( get_pcvar_numg_iCvars] ) ) ) 
Way too many spaces. Without extra spaces code looks better and it's easier to read:
PHP Code:
if(!get_pcvar_num(g_iCvars[1])) 
Also notice that the ( after ! is not needed.
It's a style of coding, I removed the extra '('.

Quote:
Originally Posted by HamletEagle View Post
[php]
I would add a is_user_connected check in client_putinserver.
Done.

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
if( attacker == victim )
return 
HAM_IGNORED 
This check looks reduntant. You can't kill yourself with the knife.
Somehow, I forgot to upload the version without that check, no idea how but I didn't have that in my latest version in desktop.

Thanks!

@Visinescu

Thanks, credits added.
__________________
edon1337 is offline
Send a message via Skype™ to edon1337
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 09:39.


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