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

[ANY] Basic Donator Interface


Post New Thread Reply   
 
Thread Tools Display Modes
pcmaster
AlliedModders Donor
Join Date: Sep 2009
Old 01-24-2016 , 08:01   Re: [ANY] Basic Donator Interface
Reply With Quote #261

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 #262

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 #263

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, 209 views)
File Type: sp Get Plugin or Get Source (donator.core.sp - 196 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 #264

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 #265

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 #266

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 #267

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 #268

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 - 78 views - 4.6 KB)
CoolJosh3k is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-13-2020 , 02:46   Re: [ANY] Basic Donator Interface
Reply With Quote #269

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.

Last edited by 404UserNotFound; 01-13-2020 at 02:49.
404UserNotFound is offline
dad98253
New Member
Join Date: Jul 2021
Old 08-13-2021 , 00:50   Re: [ANY] Basic Donator Interface
Reply With Quote #270

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).
Is there an updated donator.inc file that goes with this?
dad98253 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:00.


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