View Single Post
Plugin Info:     Modification:          Category:         
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 - 3199 views - 10.4 KB)
__________________

Last edited by Arion; 11-25-2007 at 08:51.
Arion is offline
Send a message via MSN to Arion