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

New Punish system(V1.7 Last Version)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-20-2009 , 06:49   New Punish system(V1.7 Last Version)
Reply With Quote #1

New Punish system
another name (TM_Final V1.7)


Description:
First of all, the idea come from myself, sometimes, I'm playing in CS server that have a plugin can drop money to teammate, when i tole him I need backup, he don't drop money for me ! then, I'm so angry, so I wrote this code.
This plugin is a admin command, when someone become a admin, "say /tm" or type "amx_take_money" in the console, then will show a player menu that only alive teammate. and then the admin can take the player's money out, and the money only teammate can pick up, the enemy and the money owner can't pick up.
Cvars:
amx_max_money 16000 -- if the player's money more than this value can't pick up .
amx_level 1000 3000 5000 8000 10000 -- Note that the money level can't more than 99999 if used unlimited money
amx_can_not_pick_up 1 -- this is a show message setting, if player's money more than "amx_max_money" and touch the money bag, 1 will show color message, else don't show
amx_new_round_note 1 -- set 1 will show notice new round, the admin notice different from user .
amx_drop_count 20 -- how many money bag can drop out .
amx_keep_money_round 1 -- how many rounds can keep the money bag
//this Parameter I don't know how explain , I just make a example. Eg:I pick up this money bag ,and must be wait 1 second can pick up the next money bag. that is it !sorry for my bad english
amx_pick_delay_time 1
#include file:

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

chat color
PHP Code:
public print_color(pIndexcIndex, const msg[], {Float,Sql,Result,_}:...)
{
 static 
message[192];
 
vformat(messagecharsmax(message), msg4);
 
replace_all(message191"!g""^x04");
 
replace_all(message191"!t""^x03");
 
replace_all(message191"!n""^x01");
 
message_begin(pIndex?MSG_ONE:MSG_ALLg_SayText_pIndex);
 
write_byte(cIndex);
 
write_string(message);
 
message_end();











Multilingual:
[en] -- K.K.Lv
[cn] -- K.K.Lv
[tw] -- K.K.Lv
[de] -- martagos
especially thx:
The money models made by Edoo.Cn.spaCe. Club

the forum address :www.edoocn.com/bbs

Changelog:
v1.7 -- fixed amx_level (Thx ArkShine)
v1.6 -- change engine to fakemeta, and change some cvars
v1.5 -- fix some bugs and change the coding style, and fix the Multilingual.

I test it in my server and it's well !!!
Attached Files
File Type: zip models.zip (43.3 KB, 177 views)
File Type: txt takemoney.txt (2.1 KB, 178 views)
File Type: sma Get Plugin or Get Source (TM_Final.sma - 697 views - 13.2 KB)
__________________
QQ:116268742

Last edited by K.K.Lv; 12-23-2009 at 21:14.
K.K.Lv is offline
Send a message via MSN to K.K.Lv
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 10-20-2009 , 08:00   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #2

Code:
    switch (key)
    {
        case 7:
        {
            level_one    = get_cvar_num("amx_level_one")
            level_two    = get_cvar_num("amx_level_two")
            level_three    = get_cvar_num("amx_level_three")
            level_four    = get_cvar_num("amx_level_four")
            level_five    = get_cvar_num("amx_level_five")
Use pcvars!
__________________

floatman is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-20-2009 , 09:28   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #3

update V1.4
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 10-21-2009 , 10:16   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #4

You should exchange your rar archive because all cant open rar so in the rules it says you should add them as zips and it appears to be broken.
And i dont see a language file for the ML
micke1101 is offline
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-21-2009 , 11:52   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #5

I'm so sorry, I forgot it !
all files was changed !!
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 10-21-2009 , 13:00   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #6

Zip seems to work

Suggestion to some edits on english translation and also translated to swedish(sv)

Code:
[en]
CAN'T_TAKE_ONE = \g[AMXX]\tYou can't take your money
NOT_ENOUGH_MONEY = \g[AMXX]\tHe has not enough money
TAKE_MONEY_ONE = \g[AMXX]\t%s \otake\t %s \o's\g %d \o$
TAKE_MONEY_TWO = \g[AMXX]\t%s \ohas been taken\g %d \o$
MENU_TITLE = Player Drop Money Menu(%s):
MENU_SETTINGS = ^n\r8. \wDrop \y%d \w$^n
FIRST_SETTINGS = ^n8. \y2000\w$^n
MONEY_PICK_UP = \g[AMXX]\t%s \opick up\g %d ^x01$
TIPS_ONE = \g[AMXX]\oAdmin press\t 'Y' \oand type\t /money\oso can you take your teammate's money.
TIPS_TWO = \g[AMXX]\oDon't take so much money from your teammate.
TIPS_THREE = \g[AMXX]\oIf your teammate need backup, drop some money or a weapon out, otherwise, will the admin punish you

[sv]
CAN'T_TAKE_ONE = \g[AMXX]\tDu kan inte ta dina pengar
NOT_ENOUGH_MONEY = \g[AMXX]\tHan har inte tillr'a'ckligt med pengar
TAKE_MONEY_ONE = \g[AMXX]\t%s \ota\t %s \o's\g %d \o$
TAKE_MONEY_TWO = \g[AMXX]\t%s \ohar tagit\g %d \o$
MENU_TITLE = Spelares penga sl'a'pp meny(%s):
MENU_SETTINGS = ^n\r8. \wSl'a'ng \y%d \w$^n
FIRST_SETTINGS = ^n8. \y2000\w$^n
MONEY_PICK_UP = \g[AMXX]\t%s \ota upp\g %d ^x01$
TIPS_ONE = \g[AMXX]\oAdmin tryck\t 'Y' \ooch skriv\t /money\o sa kan du ta dina lagkamraters pengar.
TIPS_TWO = \g[AMXX]\oTa inte sa mycket pengar fran din lagkamrat.
TIPS_THREE = \g[AMXX]\oOm din lagkamrat beh'o'ver assistans, sl'a'pp lite pengar eller ett vapen, annars, kommer admin bestraffa dig
micke1101 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-21-2009 , 13:01   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #7

This plugin needs testing. If anyone can report that it does or doesn't work, please post.

Clean up your coding style. Use more whitespace at the very least.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approval pending on changes.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-22-2009 , 08:43   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #8

Ok!
I will change the coding style, and please stop downloading it !
waiting for update!
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-23-2009 , 15:52   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #9

Quote:
Originally Posted by K.K.Lv View Post
Ok!
I will change the coding style, and please stop downloading it !
waiting for update!
Your waiting for an update for a plugin you made? hmm...
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
K.K.Lv
Veteran Member
Join Date: Aug 2008
Location: GameFolder
Old 10-23-2009 , 18:15   Re: New Punish system(admin enforce teammate drop money)
Reply With Quote #10

@Hawk552 the coding style has been changed.

@mickel1101 the ML has been modify

update v1.5
__________________
QQ:116268742
K.K.Lv is offline
Send a message via MSN to K.K.Lv
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 13:52.


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