AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Frag Thief (https://forums.alliedmods.net/showthread.php?t=249160)

Decak 10-01-2014 11:12

Frag Thief
 
1 Attachment(s)
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.


HamletEagle 10-01-2014 11:44

Re: Frag Thief
 
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.

Decak 10-01-2014 12:33

Re: Frag Thief
 
Hmm, i coded this in 2013, i dont looking for indent...I will edit now.

Arkshine 10-01-2014 12:37

Re: Frag Thief
 
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?

Decak 10-01-2014 12:42

Re: Frag Thief
 
@Arkshine Edited, right now.

Jhob94 10-01-2014 12:54

Re: Frag Thief
 
Readability still being bad. My english is bad, indeed. But your english is even more unreadable than your code :grrr:

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!"


Decak 10-01-2014 13:21

Re: Frag Thief
 
Hahahahaha mistake :D Edited.

Blizzard_87 10-04-2014 23:16

Re: Frag Thief
 
Quote:

Originally Posted by Arkshine (Post 2205714)
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.

zmd94 10-05-2014 04:26

Re: Frag Thief
 
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?

Jhob94 10-05-2014 08:02

Re: Frag Thief
 
Quote:

Originally Posted by zmd94 (Post 2207279)
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.


All times are GMT -4. The time now is 20:48.

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