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

Custom Frags And Deaths v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Arion
Senior Member
Join Date: Mar 2007
Old 08-22-2007 , 00:25   Custom Frags And Deaths v1.1
Reply With Quote #1

Custom Frags And Deaths
by Arion

Description:
This plugin allows admins with the defined access level (Default ADMIN_BAN) to set a player's frags and deaths.


Commands:
amx_setfrags <nick> <frags>
example: amx_setfrags Arion 47
Will set Arion's frags to 47


amx_setdeaths <nick> <deaths>
example: amx_setdeaths Arion 28
Will set Arion's deaths to GUESS WHAT?


To change everyone's frags or deaths, put * instead of the nick/authid:
amx_setfrags * <frags>
example: amx_setfrags * 11
Will set everyone's frags to 11
You can use * wildcard in all commands


To change frags or deaths of one team only:
amx_setdeaths @T <deaths>
amx_setscore @CT <frags> <deaths>

Self explanatory..


To change frags or deaths of players who have a specific argument on name:
amx_setfrags !ARGUMENT <frags>
example: amx_setfrags ![No0B] 8
Will set the frags of all players who have [No0B] in their nick to 8


Frags and Deaths could be any integer value between -32768 and 32767

Changes takes effect when player kills or die, or at new round.


Changelog:
Code:
v1.0 [08/22/2007] Initial Release 
v1.1 [08/23/2007] + Added amx_setscore
                  + Added Team-specific changes
                  + Added Tag-specific changes
                  $ Code-Optimization
Look at the screenshots below to see an example of what you can do with it:



Attached Files
File Type: sma Get Plugin or Get Source (custom_frags_and_deaths.sma - 3196 views - 10.4 KB)
__________________

Last edited by Arion; 11-25-2007 at 08:51.
Arion is offline
Send a message via MSN to Arion
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-22-2007 , 06:29   Re: Custom Frags And Deaths v1.0
Reply With Quote #2

Hmmm, there's already a ChangeScore plugin http://forums.alliedmods.net/showthread.php?p=2851 but I guess this will work more extensively it if actually works, nice.

Some suggestions from my point of view: add a command that sets score so you can do amx_setscore <nick> <frags> <deaths> rather than just frags or deaths (plenty people prefer using it when setting both stats so they don't have to use two different commands, myself included).

And add CT/T functionality and perhaps an "includes" function so you can use clantags or whatever to put set frags/death/score on all players with that argument in the name. eg.
amx_setscore [KoD] 1337 0

That's all I can think of, but good job in any case, +karma.

EDIT: Oh yes, I forgot about one thing, make the changes permanent. I think Freecode's plugin did that so maybe you could use that for reference (unless you already know how, I certainly don't).
__________________
Mod:
User:
BlackMilk is offline
Konkelikonk
Junior Member
Join Date: Jul 2007
Location: Norway
Old 08-22-2007 , 07:43   Re: Custom Frags And Deaths v1.0
Reply With Quote #3

cool plugin, but make somechange with it..like you can change the /top15 - score, and not just the frag score....Change it???
__________________
My revenge is to kill you all NOOBS in CS 1.6!
Konkelikonk is offline
Arion
Senior Member
Join Date: Mar 2007
Old 08-22-2007 , 16:20   Re: Custom Frags And Deaths v1.0
Reply With Quote #4

@BlackMilk

Thanks for suggestions, I'll see what I can do.
amx_setscore is already made.



@Konkelikonk

I don't know if this is even possible, but I'll take a look too
__________________
Arion is offline
Send a message via MSN to Arion
Arion
Senior Member
Join Date: Mar 2007
Old 08-23-2007 , 01:00   Re: Custom Frags And Deaths v1.1
Reply With Quote #5

Updated to v1.1

I really don't know the point of making changes permanent, but I'll try to do that.
__________________
Arion is offline
Send a message via MSN to Arion
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-23-2007 , 10:21   Re: Custom Frags And Deaths v1.1
Reply With Quote #6

That was...fast...heh..
I'm gonna try it soon with new and faster servers +]
__________________
Mod:
User:
BlackMilk is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-24-2007 , 17:36   Re: Custom Frags And Deaths v1.1
Reply With Quote #7

Redundant, useless.

Unapproved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Arion
Senior Member
Join Date: Mar 2007
Old 08-25-2007 , 12:05   Re: Custom Frags And Deaths v1.1
Reply With Quote #8

My mom approved it. What's wrong with you Hawk?

¬¬"
__________________
Arion is offline
Send a message via MSN to Arion
vvg125
AMX Mod X Beta Tester
Join Date: Dec 2006
Location: Queens (Douglaston), New
Old 08-26-2007 , 17:41   Re: Custom Frags And Deaths v1.1
Reply With Quote #9

Quote:
Originally Posted by Arion View Post
My mom approved it. What's wrong with you Hawk?

¬¬"
Your mom is not a plugin approver. Hawk552 is. A plugin has to meet certain standards to be approved, thus the job of the plugin approver.

One of the many standards is, it should be an original idea.
__________________
vvg125 is offline
Send a message via AIM to vvg125 Send a message via MSN to vvg125 Send a message via Yahoo to vvg125
Arion
Senior Member
Join Date: Mar 2007
Old 08-26-2007 , 17:50   Re: Custom Frags And Deaths v1.1
Reply With Quote #10

Quote:
Originally Posted by vvg125 View Post
Your mom is not a plugin approver.
I know. Do you know a thing called sarcasm?

Quote:
Originally Posted by vvg125 View Post
One of the many standards is, it should be an original idea.

What if, even if my version isn't the original, it is much more efficient, well-coded and well-descriptive?
__________________
Arion is offline
Send a message via MSN to Arion
Old 08-27-2007, 17:22
vvg125
This message has been deleted by vvg125. Reason: double
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 07:27.


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