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

Integrating HNS XP with Custom Shop


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-30-2020 , 16:08   Re: Integrating HNS XP with Custom Shop
Reply With Quote #11

It's possible only by modifying the amount of the default ingame money.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 06-30-2020 , 16:19   Re: Integrating HNS XP with Custom Shop
Reply With Quote #12

Quote:
Originally Posted by OciXCrom View Post
It's possible only by modifying the amount of the default ingame money.
So, will cs_set_user_money(id, hnsxp_get_user_xp(id)) at the end of round work? If not, is it possible to show the XP inside donate points plugin, by editing this?

PHP Code:
if(iPlayer != id)
{
            
num_to_str(iPlayerszTempidcharsmax(szTempid))
            
get_user_name(iPlayerszItemcharsmax(szItem))
            
menu_additem(iMenuszItemszTempid)


Last edited by MaNaReaver; 06-30-2020 at 16:23.
MaNaReaver is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-30-2020 , 17:47   Re: Integrating HNS XP with Custom Shop
Reply With Quote #13

If you want to show them only when the round ends, then yes, otherwise you need to do that whenever the player's amount of XP changes. Also, you can do this only if you're not using the regular money for anything else.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 06-30-2020 , 19:11   Re: Integrating HNS XP with Custom Shop
Reply With Quote #14

Quote:
Originally Posted by OciXCrom View Post
If you want to show them only when the round ends, then yes, otherwise you need to do that whenever the player's amount of XP changes. Also, you can do this only if you're not using the regular money for anything else.
I was able to get the points to set itself on xp change, but is there a way to set round money and kill money to 0?
MaNaReaver is offline
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 00:47.


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