Raised This Month: $ Target: $400
 0% 

[ANY] Basic Donator Interface


Post New Thread Reply   
 
Thread Tools Display Modes
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 10-12-2013 , 19:09   Re: [ANY] Basic Donator Interface
Reply With Quote #221

Quote:
Originally Posted by delidolu1genc View Post
I do not know how to edit it. Please help me.
Try this: http://spider.limetech.org/

Download the .inc file from the first post, drag and drop it into the spot that says "Drop thirdparty include files here to use them"

Copy and paste the contents of the .sp into the empty area. Name it donator.core.sp at the top, then compile. If it didn't work you didn't do it right.
__________________
serpentine is offline
clad
Senior Member
Join Date: Oct 2006
Old 10-14-2013 , 12:42   Re: [ANY] Basic Donator Interface
Reply With Quote #222

Quote:
Originally Posted by serpentine View Post
Okay then. @clad
Now insert yourself as a "donator" by running this through sql
Code:
INSERT INTO `donators` ( `steamid` , `tag`, `level` ) VALUES ( 'POOTSTEAMIDHERE', 'THIS IS A TAG', 5 );
Restart server and give it a try.
What would be the correct way to remove a donator without removing the table ? (donators is considered the table, correct ? )


I tried to edit this in for sourcebans, but it doesn't seem to work right for me.
__________________

Last edited by clad; 10-14-2013 at 12:44. Reason: added last line.
clad is offline
serpentine
I don't have a problem
Join Date: Feb 2011
Location: Madison, WI
Old 10-14-2013 , 13:17   Re: [ANY] Basic Donator Interface
Reply With Quote #223

Quote:
Originally Posted by clad View Post
What would be the correct way to remove a donator without removing the table ? (donators is considered the table, correct ? )


I tried to edit this in for sourcebans, but it doesn't seem to work right for me.
You can just delete the person from the table with phpmyadmin if you're using sql. Simpler to do it with flatfile. I'm sure someone could write a plugin up pretty quick to delete via sql.
__________________
serpentine is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 12-26-2013 , 21:36   Re: [ANY] Basic Donator Interface
Reply With Quote #224

I have a few requests.

AddMultiTargetFilter("@donator", DonorTargetFilter, "all Donators", false);
AddMultiTargetFilter("@donators", DonorTargetFilter, "all Donators", false);
AddMultiTargetFilter("@donor", DonorTargetFilter, "all Donators", false);
AddMultiTargetFilter("@donors", DonorTargetFilter, "all Donators", false);

And something like

RegConsoleCmd("donators", DoDonorStuff);
RegConsoleCmd("donator", DoDonorStuff);

Or RegAdminCmd();

Because I had to edit the plugin with

#define CHAT_TRIGGER "!donators"
#define CHAT_TRIGGER1 "!donator"
#define CHAT_TRIGGER2 "/donators"
#define CHAT_TRIGGER3 "/donator"

Which just looks bad.

Otherwise, really nice plugin. Makes managing donors for custom plugins p easy.
__________________

Last edited by Chdata; 12-26-2013 at 21:36.
Chdata is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 12-30-2013 , 22:24   Re: [ANY] Basic Donator Interface
Reply With Quote #225

Is Native_SetDonatorLevel ever going to be properly implemented in this? If Toazron isn't working on this, or isn't active here anymore, could someone do me a huge favor?

The favor would be to implement the SetDonatorLevel function. I mean, it's got a bunch of commented-out code, but I can't for the life of me tell if uncommenting it and running it would result in it working properly. Here's the code:

Spoiler


Side question regarding RegisterMenuItem: What I want to do, using the SQL option, is set three distinct Donator "levels" (because this plugin allows for "levels"). They would be levels 1, 2 and 3. How would I go about registering a menu item, but only having it show up for specific level donators (i.e. only Level 3 donators)?

Last edited by 404UserNotFound; 12-30-2013 at 23:02.
404UserNotFound is offline
dunman888
Member
Join Date: Aug 2013
Location: Kentucky-USA
Old 02-13-2014 , 23:02   Re: [ANY] Basic Donator Interface
Reply With Quote #226

Ok So, I have Donators in my Server and I need this "Donator Menu for them" Plus Some Plugins, I would like to know How I would Install This
dunman888 is offline
Send a message via Skype™ to dunman888
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-14-2014 , 03:49   Re: [ANY] Basic Donator Interface
Reply With Quote #227

Ok, so originally I just recoded this to remove everything except for the RegisterMenuItem/UnregisterMenuItem natives, so it would be an easy Donator menu plugin.

However, there was no easy way for me to restrict certain registered items from appearing to specific donator levels.

What I've done instead is made a copy of the stock adminmenu plugin, and recoded it completely to create a donatormenu plugin, complete with working donatormenu_custom.txt, donatormenu_sorting.txt and donatormenu_grouping.txt files.

It works much better than this, and allows for restricting certain menu items from appearing to certain donator levels. I also removed the Player Commands, Server Commands and Voting Commands sections, and added in a Color Commands section.

I really would like to release it here on the forum, but it has the aforementioned hardcoded "Color Commands" section in it, featuring player colorizing, weapon colorizing, wearable coloring and Engineer Building colorizing specifically coded for TF2. So I may end up not releasing it because of my hardcoded "Color Commands" section.
404UserNotFound is offline
shot5fir3d
Member
Join Date: May 2009
Old 02-21-2014 , 23:00   Re: [ANY] Basic Donator Interface
Reply With Quote #228

Can't get this to work in CS:GO :/

Any help?

Needing some type of donator menu implemented.
shot5fir3d is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 02-23-2014 , 11:09   Re: [ANY] Basic Donator Interface
Reply With Quote #229

Does anybody know where to put that PHP code, where do you place it, and what will the .cfg file be named, I don't get it? Sorry for being a n00b
Sarabveer is offline
hamza47sohail
Senior Member
Join Date: Jan 2014
Old 02-23-2014 , 13:46   Re: [ANY] Basic Donator Interface
Reply With Quote #230

Can this be used to recognize donators from another interface like the Sourcebans Donator System?
__________________
The Server Is In CANADA GameTracker Is Being Weird
hamza47sohail 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 13:35.


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