Raised This Month: $ Target: $400
 0% 

[Request] RPG Script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stoned890
Junior Member
Join Date: Jan 2009
Old 01-07-2009 , 18:23   [Request] RPG Script
Reply With Quote #1

I'm setting up a donation system for the server. I can talk to the server via RCON, but the thing is, how do i set some one's level/credit amount if they are not in game? can i even do it?

If someone could create a script to have this happen, it would be great.

Something like:

Make it where when a player connects, you use sm to see if they have gotten the first opertunity of credits (say package 1), if true, it checks to see if they have already gotten then, if not true, it sends an rcon command to the server to give them x amount of credits. Then will change to them receiving package 1 from false to true.
Stoned890 is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 01-08-2009 , 03:55   Re: [Request] RPG Script
Reply With Quote #2

I think the answer is in the method that you are using to store this information. Are you using a mysql database? Sqlite? The person's information would have to be stored somewhere, unless they are reset to zero each time they join.
__________________
msleeper is offline
Stoned890
Junior Member
Join Date: Jan 2009
Old 01-08-2009 , 16:10   Re: [Request] RPG Script
Reply With Quote #3

I am using the database file that is in the servers FTP. ie cstrike/cfg/cssrpg/cssrpg.db
Stoned890 is offline
Kigen
BANNED
Join Date: Feb 2008
Old 01-08-2009 , 16:48   Re: [Request] RPG Script
Reply With Quote #4

Its SQLite. w/e
Kigen is offline
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 01-09-2009 , 03:39   Re: [Request] RPG Script
Reply With Quote #5

You could try either making an admin-only command that adds credits regardless if the user is online/in-game. The SQL lines would still be the same.
__________________
msleeper is offline
Kigen
BANNED
Join Date: Feb 2008
Old 01-09-2009 , 06:12   Re: [Request] RPG Script
Reply With Quote #6

Well its CS:S RPG which is a VSP plugin that is hardly maintained anymore. Its not a SourceMod plugin.
Kigen is offline
Stoned890
Junior Member
Join Date: Jan 2009
Old 01-09-2009 , 18:38   Re: [Request] RPG Script
Reply With Quote #7

Im talking if there is a way to create a plugin/script that would let me add credits to someone's profile while their offline.
Stoned890 is offline
Stoned890
Junior Member
Join Date: Jan 2009
Old 01-13-2009 , 16:22   Re: [Request] RPG Script
Reply With Quote #8

So does anyone out there think that they could create a script/plugin that you allow this?
Stoned890 is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 01-13-2009 , 17:28   Re: [Request] RPG Script
Reply With Quote #9

Can you just open the sqlite db file with an sqlite browser and change a users credits?
__________________
"Good grammar is essential, Robin."
- Batman

Last edited by L. Duke; 01-13-2009 at 17:30.
L. Duke 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 16:11.


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