Raised This Month: $ Target: $400
 0% 

Frag Thief


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Decak
Senior Member
Join Date: Sep 2012
Old 10-01-2014 , 11:12   Frag Thief
Reply With Quote #1

Frag Thief v1.0

Plugin Info:
- Plugin is coded in 2013.I have this plugin on my server, and he is work great.Plugin is Fun Category, player can steal frags of another player and give frags them.I accept all suggestions, and I will add your suggestions in next version.Every 120 seconds, plugin prints plugin info in chat.When player type /thief , player receives message with plugin info in console.

Plugin Commands:
amx_stolefrag <nick> - Player steal selected player frags(specified cvar), for money(specified cvar).Selected player loses frags.
amx_givefrag <nick> <frags> - Player gives his selected frags to selected player.

Plugin Cvars:
amx_stolemoney default: "8000" - Stole thieving.
amx_frags default: "7" - Number of stolen frags(command 'amx_stolefrag').

All suggestions are welcome.

Attached Files
File Type: sma Get Plugin or Get Source (Frag-Thief.sma - 771 views - 3.4 KB)

Last edited by Decak; 10-01-2014 at 13:22. Reason: Grammar
Decak is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-01-2014 , 11:44   Re: Frag Thief
Reply With Quote #2

1. Indent your code.
2. You are using returns in a very silly way. You clearly don't understand when and for what to use them. Also, you don't know how if - else/ else if will act.
__________________
HamletEagle is offline
Decak
Senior Member
Join Date: Sep 2012
Old 10-01-2014 , 12:33   Re: Frag Thief
Reply With Quote #3

Hmm, i coded this in 2013, i dont looking for indent...I will edit now.
Decak is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2014 , 12:37   Re: Frag Thief
Reply With Quote #4

So, you are telling you even didn't bother to review your plugin and you release something for the sake of releasing without caring about rules, caring about quality code?
__________________
Arkshine is offline
Decak
Senior Member
Join Date: Sep 2012
Old 10-01-2014 , 12:42   Re: Frag Thief
Reply With Quote #5

@Arkshine Edited, right now.
Decak is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-01-2014 , 12:54   Re: Frag Thief
Reply With Quote #6

Readability still being bad. My english is bad, indeed. But your english is even more unreadable than your code

And please explain me this:
PHP Code:
client_print(idprint_console"If you want to send [U]money[/U] to someone player type in console:")
    
client_print(idprint_console"amx_givefrag <nick> <number> - Giving your [U]frags[/U] to player!"
__________________
Jhob94 is offline
Decak
Senior Member
Join Date: Sep 2012
Old 10-01-2014 , 13:21   Re: Frag Thief
Reply With Quote #7

Hahahahaha mistake Edited.
Decak is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 10-04-2014 , 23:16   Re: Frag Thief
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
So, you are telling you even didn't bother to review your plugin and you release something for the sake of releasing without caring about rules, caring about quality code?
Agreed. Plus there are already lots of plugins which modify the use of frags.

Back on topic.

I don't think it's fair for anyone to be able to use there money to steal others frags as someone could just not buy guns then use that money to steal frags.
__________________
Blizzard_87 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 10-05-2014 , 04:26   Re: Frag Thief
Reply With Quote #9

I agreed with Blizzard_87.

If the player is a smart player and have a lot of money, then it is better to steal other frags then buy a gun. ;)

By the way, does this thief plugin will affect the XP or Level system that use frag to count the points?

Last edited by zmd94; 10-05-2014 at 04:26.
zmd94 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-05-2014 , 08:02   Re: Frag Thief
Reply With Quote #10

Quote:
Originally Posted by zmd94 View Post
By the way, does this thief plugin will affect the XP or Level system that use frag to count the points?
Depending of how the point system is used. But i guess it wouldn't affect. At least biggest part of XP points based on frags has the frags in fact based on points, wich means this plugin wouldn't really run among that xp plugin.

About steal frags instead of buy guns, a dumb player would do it, not a smart one. Why? Cuz it changes the score only, people care about ranking.
__________________
Jhob94 is offline
Reply



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 19:17.


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