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

[CSGO] A credit system plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PeterPan
Junior Member
Join Date: Mar 2020
Old 05-09-2020 , 12:30   [CSGO] A credit system plugin
Reply With Quote #1

I'm looking for a credit system type plugin much like the common store ones but I don't want to credits to be saved after the user disconnects
credits would be given every x amount of seconds and x amount for kills and x amount for winning around

So user connects earns/spends credits then when they reconnect they're back at 0

I then want a player to be able to do !awp or something which would then exec sm_give "#steamid" awp and take x amount of credits

Last edited by PeterPan; 05-09-2020 at 13:45.
PeterPan is offline
DiogoOnAir
Senior Member
Join Date: Jul 2018
Location: Portugal
Old 05-09-2020 , 13:45   Re: [CSGO] A credit system plugin
Reply With Quote #2

Quote:
Originally Posted by PeterPan View Post
I'm looking for a credit system type plugin much like the common store ones but I don't want to credits to be saved after the user disconnects

So user connects earns/spends credits then when they reconnect they're back at 0
Add me on discord or steam
__________________
I accept Private(Paid) plugins requests
If you like my job donate me Here
Feel free to add me on Steam
Feel free to add me on Discord DiogoOnAir | Config & Developer#7961
Check my website
If you want to buy any server, you can buy it from here!
Datacenters around the world!
DiogoOnAir is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-09-2020 , 15:34   Re: [CSGO] A credit system plugin
Reply With Quote #3

Quote:
Originally Posted by PeterPan View Post
So user connects earns/spends credits then when they reconnect they're back at 0
Simple like that:
PHP Code:
#include <store>

public void OnClientDisconnect(int client)
{
    
Store_SetClientCredits(client0);


Quote:
Originally Posted by PeterPan View Post
I then want a player to be able to do !awp or something which would then exec sm_give "#steamid" awp and take x amount of credits
This store have that option https://forums.alliedmods.net/showthread.php?t=276677

If you need help with the configuration of that plugin just search in that topic. If you still need something else, let me know


EDIT: I clarify that the smx that was included is the small source that I put in the post. The include file is public available HERE (the store link that I mentioned) and I used sourcemod 1.7 for compile (because that include have warnings on newest compilers).
Attached Files
File Type: smx store_resetcredits.smx (3.4 KB, 34 views)
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 05-09-2020 at 20:31.
Franc1sco is offline
Send a message via MSN to Franc1sco
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 21:52.


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