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

Refresh profile from database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Destinyg133
Senior Member
Join Date: Jul 2016
Location: Croatia
Old 08-25-2016 , 08:58   Refresh profile from database
Reply With Quote #1

hello, i've got a rewuest if someone has time and if he is willing to do this

Im hosting surf server, sometimes all times get deleted but they are still in database, once a player joins he is rank new with 0 points. but if he completes a map or go to !rank profile and refresh profile his points and rank is loaded from database,

so my question is if it is a possible to make a plugin that will refresh all profiles from datavase so players dont have to do it manually
Destinyg133 is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-25-2016 , 09:01   Re: Refresh profile from database
Reply With Quote #2

It would just be easier to fix the plugin itself and have the database fetch the information when the client joins.
Making a separate plugin would be unnecessary.
Maxximou5 is offline
Destinyg133
Senior Member
Join Date: Jul 2016
Location: Croatia
Old 08-25-2016 , 10:14   Re: Refresh profile from database
Reply With Quote #3

i have no idea how to fix cksurf, and the one who made it stopped.working on it

Last edited by Destinyg133; 08-25-2016 at 10:58.
Destinyg133 is offline
mazdarx8
Veteran Member
Join Date: Aug 2014
Old 08-25-2016 , 10:41   Re: Refresh profile from database
Reply With Quote #4

i am interesting too
mazdarx8 is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 08-25-2016 , 11:00   Re: Refresh profile from database
Reply With Quote #5

I think I know how to fix it I need to check.
Edit:
Found how.
I am gonna make a plugin for it.
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests

Last edited by BraveFox; 08-25-2016 at 11:01.
BraveFox is offline
Destinyg133
Senior Member
Join Date: Jul 2016
Location: Croatia
Old 08-25-2016 , 11:20   Re: Refresh profile from database
Reply With Quote #6

i would be very gratefull if you could do that
Destinyg133 is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 08-25-2016 , 11:41   Re: Refresh profile from database
Reply With Quote #7

So I made a plugin.
When player join the server it automatic refresh his profile.
Tell me if it works good.
*NOT TESTED YET*
Attached Files
File Type: sp Get Plugin or Get Source (cksurfranksfixer.sp - 304 views - 516 Bytes)
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests
BraveFox is offline
Destinyg133
Senior Member
Join Date: Jul 2016
Location: Croatia
Old 08-25-2016 , 12:05   Re: Refresh profile from database
Reply With Quote #8

will go and test it later, and im really thankful for your work will give you feedback
Destinyg133 is offline
BraveFox
AlliedModders Donor
Join Date: May 2015
Location: Israel
Old 08-25-2016 , 13:15   Re: Refresh profile from database
Reply With Quote #9

Quote:
Originally Posted by Destinyg133 View Post
will go and test it later, and im really thankful for your work will give you feedback
It's ok
ty
__________________
Contact Me:
Steam: NoyB
Discord: Noy#9999
Taking Private Requests

Last edited by BraveFox; 08-25-2016 at 13:16.
BraveFox 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:57.


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