Raised This Month: $ Target: $400
 0% 

Money text.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 12-31-2009 , 15:19   Money text.
Reply With Quote #1

Hi guys
Does anyone know how to change the money text to the amount of a variable?
This money text:
[IMG]http://img199.**************/img199/9448/examplecc.jpg[/IMG]

Thanks
-zacky
zacky is offline
Send a message via Skype™ to zacky
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 12-31-2009 , 15:29   Re: Money text.
Reply With Quote #2

I think this should work.
PHP Code:
cs_set_user_money(idget_pcvar_num(cvar name
You must include cstrike module to compile this.
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 12-31-2009 , 15:32   Re: Money text.
Reply With Quote #3

Quote:
Originally Posted by benamo6 View Post
I think this should work.
PHP Code:
cs_set_user_money(idget_pcvar_num(cvar name
You must include cstrike module to compile this.
No no, i know how to set money, but just to change that message that i marked on the picture, i want it to show a variable, like gPoints or something, and not show the players money.
zacky is offline
Send a message via Skype™ to zacky
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 12-31-2009 , 15:36   Re: Money text.
Reply With Quote #4

I think that for that you'll need to change the sprite?
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it
benamo6 is offline
Send a message via MSN to benamo6
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 12-31-2009 , 15:37   Re: Money text.
Reply With Quote #5

Quote:
Originally Posted by benamo6 View Post
I think that for that you'll need to change the sprite?
I don't know, i don't even know if its possible to change it, but i'll wait for someone else to answer then.

Thanks anyway.
zacky is offline
Send a message via Skype™ to zacky
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-31-2009 , 16:03   Re: Money text.
Reply With Quote #6

if its a number, it will work
but i dont think its possible to remove the "$" sign
__________________
minimiller is offline
Send a message via MSN to minimiller
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 12-31-2009 , 16:21   Re: Money text.
Reply With Quote #7

Quote:
Originally Posted by minimiller View Post
if its a number, it will work
but i dont think its possible to remove the "$" sign
I dont want to remove the $ sign, i just wanna change so it says the number of the variable i wanna use there instead. Do you know how to do that?
zacky is offline
Send a message via Skype™ to zacky
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 12-31-2009 , 16:29   Re: Money text.
Reply With Quote #8

cs_set_user_money(id, giPoints);
u need to use that whenever points are given or taken away
__________________
minimiller is offline
Send a message via MSN to minimiller
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 12-31-2009 , 16:32   Re: Money text.
Reply With Quote #9

Quote:
Originally Posted by minimiller View Post
cs_set_user_money(id, giPoints);
u need to use that whenever points are given or taken away
Aw, thats not what i want. You see, when you kill some1 you get money, then that message will change. Even on next round when you get money.

I either want to change that msg, or block getting money from kills and new rounds.

Last edited by zacky; 12-31-2009 at 16:35.
zacky is offline
Send a message via Skype™ to zacky
stupok
Veteran Member
Join Date: Feb 2006
Old 12-31-2009 , 16:36   Re: Money text.
Reply With Quote #10

This code will change the display, but not the user's money. If you want to change the display AND the actual money value, you should use cs_set_user_money().

PHP Code:
//...
new msgid_Money get_user_msgidid"Money" )
//...

SetMoneyidiMoneybool:bFlash )
{
    
message_beginMSG_ONE_UNRELIABLEmsgid_Money_id )
    
write_longiMoney )
    
write_bytebFlash // should the number blink/flash?
    
message_end()

__________________

Last edited by stupok; 12-31-2009 at 16:44.
stupok is offline
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 04:13.


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