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

Round Start Money (colored)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-11-2014 , 06:12   Round Start Money (colored)
Reply With Quote #1

Round Money Colored
Author : Gullu Bhai
Version : 1.0

Description : The Start Money Will come in color
Use
!g = Green !n = Normal !t = Team In round_money.txt file

Cvars: round_money (default:16000)

Credits : Conor MC
Leod (colorchat.inc)

Installation : 1. Add round_money.amxx to cstrike/addons/amxmodx/plugins folder
2. Add round_money.sma to
cstrike/addons/amxmod/scripting folder
3. put the round_money.txt to cstrike/addons/amxmodx/data/lang folder
4. Add Colorchat.inc to cstrike/addons/amxmod/scripting/include folder




PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>


new MONEY;

public 
plugin_init()
{
register_plugin("round_money(colored)","1.0""Gullu Bhai")

MONEY register_cvar("round_money","16000")

/* Register LANG file */
register_dictionary_colored("round_money.txt" )

register_logevent("new_round"2"1=Round_Start")
}
public 
new_round()
{
new 
players[32], playerCountiplayerpMoney;
pMoney get_pcvar_num(MONEY)

get_players(players,playerCount);

for(
i=0;i<playerCount;i++)
{
player players[i];
if(
cs_get_user_money(player) < pMoney)
{
cs_set_user_money(playerpMoney);
client_print_color(player,print_chat,"%L",LAN G_PLAYER,"MONEY_AMOUNT",pMoney)
}

}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by YamiKaitou; 12-11-2014 at 10:20.
tousif is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-11-2014 , 06:30   Re: Round Start Money (colored)
Reply With Quote #2

Please remove the .amxx file. By the way, what is the special of this plugin?

Next, you don't need in #include <amxmisc> your code. client_print_color also already being supported in latest version of AMX Mod X. So, you don't need to use custom color include.

http://www.amxmodx.org/api/amxmodx/client_print_color

Adding multi-language supported also may not so useful as you only have one line of chat message.

Last edited by zmd94; 12-11-2014 at 06:35.
zmd94 is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-11-2014 , 06:45   Re: Round Start Money (colored)
Reply With Quote #3

Quote:
Originally Posted by zmd94 View Post
client_print_color also already being supported in latest version of AMX Mod X. So, you don't need to use custom color include.

http://www.amxmodx.org/api/amxmodx/client_print_color
Well, I use 1.8.2 and I do not have that.
__________________
Kia is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-11-2014 , 06:47   Re: Round Start Money (colored)
Reply With Quote #4

I have added custom color include because the text to be colored is in dictionery file round_money.txt

And I replaced register_dictionery to register_dictionery_colored So i added that custom color include

special of this plugin : We see the round start text in normal color so i made this it would look good in colors
tousif is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-11-2014 , 07:11   Re: Round Start Money (colored)
Reply With Quote #5

Quote:
Originally Posted by Kia View Post
Well, I use 1.8.2 and I do not have that.
It is in 1.8.3 version.
zmd94 is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-11-2014 , 07:12   Re: Round Start Money (colored)
Reply With Quote #6

As kia said if any 1 use old version this will be needed so adde
tousif is offline
Old 12-11-2014, 07:17
tousif
This message has been deleted by tousif. Reason: double post
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-11-2014 , 07:30   Re: Round Start Money (colored)
Reply With Quote #7

Please use edit button. The code can be acceptable. Yet, you will need to add more features if you want it to be approved.
zmd94 is offline
tousif
AlliedModders Donor
Join Date: Nov 2014
Location: India
Old 12-11-2014 , 07:32   Re: Round Start Money (colored)
Reply With Quote #8

What more Features ?
tousif is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2014 , 07:40   Re: Round Start Money (colored)
Reply With Quote #9

zmd, using ML is not a problem, even if you have just one message. Your code is somehow ok but it's too simple.
__________________

Last edited by HamletEagle; 12-11-2014 at 07:40.
HamletEagle is offline
Old 12-11-2014, 08:12
tousif
This message has been deleted by tousif.
Old 12-11-2014, 08:13
tousif
This message has been deleted by tousif. Reason: nvm
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 12-11-2014 , 08:17   Re: Round Start Money (colored)
Reply With Quote #10

No, and it probably won't get approved.
__________________
Kia is offline
Old 12-11-2014, 08:21
tousif
This message has been deleted by tousif. Reason: nvm
Old 12-11-2014, 08:21
tousif
This message has been deleted by tousif.
Reply


Thread Tools
Display Modes

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 12:58.


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