Raised This Month: $8 Target: $400
 2% 

[ANY] Basic Donator Interface


Post New Thread Reply   
 
Thread Tools Display Modes
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 01-24-2016 , 02:20   Re: [ANY] Basic Donator Interface
Reply With Quote #261

Quote:
Originally Posted by abrandnewday View Post
Why even use SourceBans for donators? I use admins_simple.ini for everything and I'm migrating things over to the admins_sql plugin eventually.

I've never understood why anyone would use SourceBans for admins/donators.
Some people likes everything in "one single place".

For admins and bans, SourceBans would make it easier to maintain one set of bans across all the game servers a community has, assuming you want global bans that way.

If you're using it for your bans, it's makes most sense to use it for admins as well. If you do not have your admins listed with name and Steam ID, but only in admins_simple, then SourceBans won't know the correct "admin name" that made the ban, and you're ending up on missing some of the "overview" that SourceBans might give you otherwise.

Mixing donators into it, I agree, that would make it lose some of the overview the way it is right now. If you have 10 admins and 50 donators, you'll have 60 in SB. Who's who? Why are they there if they don't have anything to do there? .. etc.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 01-24-2016 , 08:01   Re: [ANY] Basic Donator Interface
Reply With Quote #262

Quote:
Originally Posted by arne1288 View Post
words
Basically this.
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
WickstonAlmighty
Junior Member
Join Date: Nov 2015
Old 01-25-2016 , 23:01   Re: [ANY] Basic Donator Interface
Reply With Quote #263

Quote:
Originally Posted by pcmaster View Post
Compiles fine for me, and I have always preferred this over having 140+ "admins" in my SourceBans, so they can access donor features.
Could you attach it as a .smx so we could download it from you instead of compiling it ourselves? I don't know about other people but it doesn't compile for me.
WickstonAlmighty is offline
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 01-26-2016 , 12:05   Re: [ANY] Basic Donator Interface
Reply With Quote #264

Here it is, two things though:
- I have ported the entire plugin over to SM 1.7 syntax, so if you want to compile it yourself, you need a 1.7 version.
- The native "SetDonatorLevel" has been removed entirely from my version, it was commented out in the original and I never needed it personally (all my donors have level 100).
Attached Files
File Type: smx donator.core.smx (10.2 KB, 132 views)
File Type: sp Get Plugin or Get Source (donator.core.sp - 113 views - 10.5 KB)
__________________
Stopped hosting servers as of November 2018, no longer active around here.
pcmaster is offline
WickstonAlmighty
Junior Member
Join Date: Nov 2015
Old 04-02-2016 , 01:39   Re: [ANY] Basic Donator Interface
Reply With Quote #265

PHP Code:
L 04/02/2016 10:57:20: [SMNative "SetFailState" reportedUnabled to find pluginBasic Donator Interface
L 04/02/2016 10:57:20: [SMDisplaying call stack trace for plugin "donator.colorchat.smx":
L 04/02/2016 10:57:20: [SM]   [0]  Line 65donator.colorchat.sp::OnAllPluginsLoaded()
L 04/02/2016 10:57:20: [SMPlugin encountered error 25Call was aborted
L 04
/02/2016 10:57:20: [SMNative "SetFailState" reportedUnabled to find pluginBasic Donator Interface
L 04/02/2016 10:57:20: [SMDisplaying call stack trace for plugin "donator.recognition.tf2.smx":
L 04/02/2016 10:57:20: [SM]   [0]  Line 112donator.recognition.tf2.sp::OnAllPluginsLoaded() 
I'm getting these errors when I start up my server. Any ideas?

Last edited by WickstonAlmighty; 04-02-2016 at 14:03.
WickstonAlmighty is offline
kaff3
New Member
Join Date: Aug 2016
Old 08-23-2016 , 10:58   Re: [ANY] Basic Donator Interface
Reply With Quote #266

Quote:
Originally Posted by pcmaster View Post
Here it is, two things though:
- I have ported the entire plugin over to SM 1.7 syntax, so if you want to compile it yourself, you need a 1.7 version.
- The native "SetDonatorLevel" has been removed entirely from my version, it was commented out in the original and I never needed it personally (all my donors have level 100).
Please help me ,
Logs : L 08/23/2016 - 17:52:02: [SM] Exception reported: Unabled to load cfg file (donators)
L 08/23/2016 - 17:52:02: [SM] Blaming: donator.core.smx()
L 08/23/2016 - 17:52:02: [SM] Call stack trace:
L 08/23/2016 - 17:52:02: [SM] [0] SetFailState
L 08/23/2016 - 17:52:02: [SM] [1] Line 186, E:\tf2_server\donator\donator.core.sp::SQL_Op enConnection()
L 08/23/2016 - 17:52:02: [SM] [2] Line 64, E:\tf2_server\donator\donator.core.sp::OnPlug inStart()
L 08/23/2016 - 17:52:02: [SM] Unable to load plugin "donator.core.smx": Error detected in plugin startup (see error logs)

Make for me please donator.txt file and in what folder it should be put?
kaff3 is offline
ProDog
Junior Member
Join Date: Apr 2017
Old 04-09-2017 , 07:56   Re: [ANY] Basic Donator Interface
Reply With Quote #267

I don't know how to compile the plugin....
Please help me...
ProDog is offline
ProDog
Junior Member
Join Date: Apr 2017
Old 04-09-2017 , 08:21   Re: [ANY] Basic Donator Interface
Reply With Quote #268

Quote:
Originally Posted by ProDog View Post
I don't know how to compile the plugin....
Please help me...
Never mind, got a new problem the plugin won't start
ProDog is offline
CoolJosh3k
AlliedModders Donor
Join Date: Mar 2010
Old 01-12-2020 , 07:15   Re: [ANY] Basic Donator Interface
Reply With Quote #269

A TF2 community I play with wondered if I could fix it so it had any colour. I did just that.

Modify the code as desired to add the colours you want, then compile it.

Note that you will need morecolors.inc instead of colors.inc

Colour codes are in hex format RGB.

If for example you wanted to add a gold colour then you can update it to this:

PHP Code:
enum
{
    
cNone 0,
    
cRed,
    
cGreen,
    
cBlue,
    
cMagenta,
    
cCyan,
    
cYellow,
    
cBlack,
    
cGrey,
    
cHotPink,
    
cCrayolaGold,
    
cRandom,
    
cMax
};


new 
String:szColorCodes[][] = {
    
"\x01"// Default
    
"\x07FF0000" ,    //Red
    
"\x0700FF00" ,    //Green
    
"\x070000FF" ,    //Blue
    
"\x07FF00FF" ,    //Magenta
    
"\x0700FFFF" ,    //Cyan
    
"\x07FFFF00" ,    //Yellow
    
"\x07000000" ,    //Black
    
"\x07CCCCCC" ,    //Grey
    
"\x07E6BE8A" ,    //Crayola Gold
    
"\x07FF69B4"    //Hot Pink
    
};

new const 
String:szColorNames[cMax][] = {
    
"None",
    
"Red",
    
"Green",
    
"Blue",
    
"Magenta",
    
"Cyan",
    
"Yellow",
    
"Black",
    
"Grey",
    
"Hot Pink",
    
"Crayola Gold",
    
"Random"
}; 
The \x07 indicates you are going to supply an RGB colour in hex. The next 6 characters are the RGB hex code for which colour you want to show in game. You can find a few tools on the web that will help you find the RGB hex code for the colour you desire.

As a bonus: if you want transparent text you can use \x08 instead and supply another 2 character on the end for the alpha value. For example \x08000000BF (black) where BF is the alpha value for 75% opacity.
Attached Files
File Type: sp Get Plugin or Get Source (donator.colorchat.sp - 12 views - 4.6 KB)
CoolJosh3k is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 01-13-2020 , 02:46   Re: [ANY] Basic Donator Interface
Reply With Quote #270

Quote:
Originally Posted by CoolJosh3k View Post
A TF2 community I play with wondered if I could fix it so it had any colour. I did just that.

Modify the code as desired to add the colours you want, then compile it.

Note that you will need morecolors.inc instead of colors.inc

Colour codes are in hex format RGB.

If for example you wanted to add a gold colour then you can update it to this:

The \x07 indicates you are going to supply an RGB colour in hex. The next 6 characters are the RGB hex code for which colour you want to show in game. You can find a few tools on the web that will help you find the RGB hex code for the colour you desire.

As a bonus: if you want transparent text you can use \x08 instead and supply another 2 character on the end for the alpha value. For example \x08000000BF (black) where BF is the alpha value for 75% opacity.
Should've updated the syntax while you were in there. Matter of fact, this entire thing could use a ground-up rewrite. This old basic-ass plugin is the entire reason I started learning SourcePawn.
__________________
Plugin Developer for Creators.TF


Last edited by 404UNF; 01-13-2020 at 02:49.
404UNF is offline
Reply


Thread Tools
Display Modes

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:26.


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