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

[REQ] add money to soccerjam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Snatch88
New Member
Join Date: Apr 2017
Old 04-28-2017 , 20:36   [REQ] add money to soccerjam
Reply With Quote #1

I would like to have a shop with soccerjam
but to do so I need these stat to give money aswell as xp

//Experience per stat.
#define EXP_GOALY 100 //for goaly save and goaly points.
#define EXP_STEAL 100
#define EXP_KILL 100
#define EXP_ASSIST 200
#define EXP_GOAL 100

i have tried attempted a few times with no luck.

Your help would be much appreciated.
Attached Files
File Type: sma Get Plugin or Get Source (soccerjam.sma - 447 views - 73.6 KB)
Snatch88 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-29-2017 , 07:37   Re: [REQ] add money to soccerjam
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=284603
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Snatch88
New Member
Join Date: Apr 2017
Old 05-01-2017 , 01:50   Re: [REQ] add money to soccerjam
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
I like your shop nothing against it. Just not want im looking for.

Soccerjam give you xp for for stealing the ball, making a goal save, or making a goal.

I would like to have coded add into the sma that gives the player money aswell as the xp it normally.

//Experience per stat.
#define EXP_GOALY 100 //for goaly save and goaly points.
#define EXP_STEAL 100
#define EXP_KILL 100
#define EXP_ASSIST 200
#define EXP_GOAL 100

i would like to add

//Money per stats.
#define Money_GOALY $2 //for goaly save and goaly points.
#define Money_STEAL $1
#define Money_KILL $1
#define Money_ASSIST $2
#define Money_GOAL $2

I am willing to pay to have this done right
Snatch88 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-01-2017 , 07:29   Re: [REQ] add money to soccerjam
Reply With Quote #4

I gave you my plugin because it has an option to communicate with other plugins. You can use it inside the soccerjam plugin and it will give XP when you want it to. Just add #include <customshop> and use the function cshop_give_points(id, amount) to give the XP when needed (see when the player gets XP in the code).
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 00:38.


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