Raised This Month: $ Target: $400
 0% 

[Request] OciXCrom Rank System


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
romeo72
Member
Join Date: Oct 2021
Old 12-12-2021 , 09:15   Re: [Request] OciXCrom Rank System
Reply With Quote #10

Hello OciXCrom,

Thank you for your quick response and help!
I changed the cshop_settings.inc file as described above.

then I recompiled the two cshop_items.sma and custom_shop.sma local on my pc.

then I have the two new files added on my server under / plugins:
cshop_items.amxx
custom_shop.amxx

I also added the changed cshop_settings.inc on my server under / scripting / include.

Code:
#if defined _cshop_settings_included
    #endinput
#endif

#include <crxranks>

#define _cshop_settings_included
#define DEFAULT_SOUND "items/gunpickup2.wav"
#define FLAG_ADMIN ADMIN_BAN
#define LANG_TYPE LANG_SERVER
#define MAX_ITEMS 100

/*
	* Change the lines below if you want to use a native for your money currency, e.g. Ammo Packs, BaseBuilder Credits, JBPacks, etc.
	* Example (%1 = id | %2 = amount):
		native zp_get_user_ammo_packs(id)
		native zp_set_user_ammo_packs(id, amount)
		#define get_user_money(%1) zp_get_user_ammo_packs(%1)
		#define set_user_money(%1,%2) zp_set_user_ammo_packs(%1, %2)
*/
#define get_user_money(%1) crxranks_get_user_xp(%1)
#define set_user_money(%1,%2) crxranks_set_user_xp(%1, %2)

/* Don't touch this line unless you know what you're doing */
#define take_user_money(%1,%2) set_user_money(%1, get_user_money(%1) - %2)
when i go to the game / shop, i still get the message that i have to pay with money !?
do you have an idea what i did wrong?

Regarding the parachute, do I insert this like your norecoil addon?

best regards
__________________

Last edited by romeo72; 12-12-2021 at 09:28.
romeo72 is offline
 



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 20:20.


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