SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 15/01/2009, 07:22 PM   #1
cosmy
Big Clucker
 
Join Date: Nov 2007
Posts: 161
Reputation: 21
Default [REL] Console Useful Functions 0.3 (CCT update)

Console Useful Functions 0.3 by Cosmy

This plugin basically is same as Console Colored Text with some additions

Installation:
1) You need put "CUF.dll" in your plugin folder.
2) Open "server.cfg" and add this string: "plugins CUF".

Changelog:
v0.3
- SetConsoleTextColor() & GetConsoleTextColor() renamed to SetConsoleTextColors() & GetConsoleTextColors()
- Added printc(), printfc(), GetConsoleForegroundColor(), GetConsoleBackGroundColor(), SetConsoleTextColors()
- Name changed from CCT to CUF (Console Useful Functions)
- All code rewritten from scratch.
- Visual C++ 2010 Express project file.
- Now whole code is licensed under MIT.
- Added SetConsoleCursorPos(), GetConsoleCursorPos()

v0.2
- Added GetConsoleTextColor()

v0.1
- Initial version

post here comments, bugs etc...
Attached Images
File Type: png Immagine.png (6.2 KB, 819 views)
Attached Files
File Type: zip cuf-0.3-bin_src.zip (23.1 KB, 432 views)

Last edited by cosmy; 12/12/2012 at 06:48 PM. Reason: Updating
cosmy is offline   Reply With Quote
Old 15/01/2009, 07:35 PM   #2
kalle
Little Clucker
 
Join Date: Oct 2007
Posts: 47
Reputation: 0
Default Re: [REL] Console Colored Text 0.1

AWESOME!!!!
Great to notice the owner if something has to be fixed immedietaly like in a debug script
kalle is offline   Reply With Quote
Old 15/01/2009, 07:35 PM   #3
cosmy
Big Clucker
 
Join Date: Nov 2007
Posts: 161
Reputation: 21
Default Re: [REL] Console Colored Text 0.1

Quote:
Originally Posted by Michael Sund
AWESOME!!!!
Great to notice the owner if something has to be fixed immedietaly like in a debug script
yeah
cosmy is offline   Reply With Quote
Old 15/01/2009, 07:59 PM   #4
Joske_Vermeulen
Big Clucker
 
Joske_Vermeulen's Avatar
 
Join Date: Mar 2007
Posts: 149
Reputation: 0
Default Re: [REL] Console Colored Text 0.1

printc(#consolecolour, string);
printfc(#consolecolour, string, arguments);
Joske_Vermeulen is offline   Reply With Quote
Old 15/01/2009, 08:21 PM   #5
Basss
Huge Clucker
 
Join Date: Jan 2008
Posts: 221
Reputation: 0
Default Re: [REL] Console Colored Text 0.1

hehe nice work cosmy ^^ i'll try it
__________________
Basss is offline   Reply With Quote
Old 15/01/2009, 10:53 PM   #6
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 18,445
Reputation: 2601
Default Re: [REL] Console Colored Text 0.1

This looks cool but the dl limit has been reached. Could you upload it somewhere else like one of the custom SA:MP hosts:

http://www.zezombia.com/mirrors/
http://www.uploadffs.com/
http://up.mavehost.de/

Edit: Does this support both Windows and Linux?
Y_Less is offline   Reply With Quote
Old 15/01/2009, 10:58 PM   #7
Nimphious
Huge Clucker
 
Join Date: Dec 2008
Posts: 388
Reputation: 1
Default Re: [REL] Console Colored Text 0.1

awesome man :P
Nimphious is offline   Reply With Quote
Old 15/01/2009, 11:49 PM   #8
boylett
Gangsta
 
Join Date: Jul 2006
Posts: 662
Reputation: 0
Default Re: [REL] Console Colored Text 0.1

Quote:
Originally Posted by ssǝן‾ʎ
This looks cool but the dl limit has been reached. Could you upload it somewhere else like one of the custom SA:MP hosts:

http://www.zezombia.com/mirrors/
http://www.uploadffs.com/
http://up.mavehost.de/

Edit: Does this support both Windows and Linux?
What would be the point? You can't see the server console in Linux anyway.
boylett is offline   Reply With Quote
Old 16/01/2009, 01:02 AM   #9
yom
High-roller
 
Join Date: Jul 2006
Posts: 2,014
Reputation: 5
Default Re: [REL] Console Colored Text 0.1

Cool, same suggestion as Contador

Also, not possible to make background AND text colors? Like..
pawn Code:
printc(bg_color, txt_color, string[]);

printc(0x0000FF, 0xFFFFFF, "Some white text on blue background");

Could be awesome
yom is offline   Reply With Quote
Old 16/01/2009, 03:21 PM   #10
cosmy
Big Clucker
 
Join Date: Nov 2007
Posts: 161
Reputation: 21
Default Re: [REL] Console Colored Text 0.1

Quote:
Originally Posted by 0rb
Cool, same suggestion as Contador

Also, not possible to make background AND text colors? Like..
pawn Code:
printc(bg_color, txt_color, string[]);

printc(0x0000FF, 0xFFFFFF, "Some white text on blue background");

Could be awesome
in the next version ^^

EDIT:
isn't possible
cosmy is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Colored Money [0.2X] lavamike Filterscripts 38 22/07/2013 03:59 PM
[FilterScript] [FS] Colored Health Bar (v 4.0) OKStyle Релизы/Releases 9 21/09/2010 01:58 PM
[FilterScript] [FS] Text -> Haystacks! [Version 1.2 Released! Now Saving!] Pghpunkid Filterscripts 51 20/06/2010 10:04 AM
How to input text into player console? Haron Help Archive 2 24/02/2010 08:29 PM
Colored Text FlatMaN Help Archive 6 15/01/2010 04:01 PM


All times are GMT. The time now is 08:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.