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

[Any] Print


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Matheus28
Senior Member
Join Date: Aug 2009
Plugin ID:
2111
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Prints a text with colors for clients
    Old 12-05-2010 , 06:23   [Any] Print
    Reply With Quote #1

    This plugin lets you print text for clients, WITH COLORS!

    It's useful if you have a plugin that executes X command when Y happens, so you can print a message just like a plugin!

    The usage is simple:
    PHP Code:
    sm_print <text
    To print for a specific player:
    PHP Code:
    sm_print_c <player> <text
    To use colors, you need to write them easily:
    Code:
    sm_print {lightgreen}I {green}like {olive}colors
    In TF2, this would result in:


    Colors table: (From Colors.inc thread)
    [IMG]http://img96.**************/img96/4973/colorstable2.png[/IMG]

    You need colors.inc to compile, I added a compiled version to the post
    Attached Files
    File Type: sp Get Plugin or Get Source (print.sp - 657 views - 1.3 KB)
    File Type: smx print.smx (6.0 KB, 669 views)

    Last edited by Matheus28; 12-10-2010 at 16:15.
    Matheus28 is offline
    MaiSiaoSiao
    Junior Member
    Join Date: Nov 2010
    Location: On a Blue Planet
    Old 12-05-2010 , 06:49   Re: [Any] Print
    Reply With Quote #2

    Doesnt work for me?I typed sm_print 123 and it says Unknown command sm_print ....
    Im used it in L4D2
    __________________
    Did you know that when someone pisses you off, it takes 42 muscles to frown, but only 4 muscles to extend your arm and slap that retard? So do the smart thing, and enjoy life.

    Last edited by MaiSiaoSiao; 12-05-2010 at 07:11.
    MaiSiaoSiao is offline
    Matheus28
    Senior Member
    Join Date: Aug 2009
    Old 12-05-2010 , 07:13   Re: [Any] Print
    Reply With Quote #3

    Check if it's loaded, type "sm plugins list" on the server console

    Last edited by Matheus28; 12-05-2010 at 08:17.
    Matheus28 is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 12-05-2010 , 09:29   Re: [Any] Print
    Reply With Quote #4

    you don't need those i guess
    PHP Code:
    #include <tf2>
    #include <tf2_stocks> 
    and why not just pump it through colors? so you could achieve sth like this easily:
    Code:
    sm_print {green}I {olive}like {green}colors
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 is offline
    Matheus28
    Senior Member
    Join Date: Aug 2009
    Old 12-05-2010 , 10:03   Re: [Any] Print
    Reply With Quote #5

    Quote:
    Originally Posted by [AAA] Thrawn View Post
    you don't need those i guess
    PHP Code:
    #include <tf2>
    #include <tf2_stocks> 
    and why not just pump it through colors? so you could achieve sth like this easily:
    Code:
    sm_print {green}I {olive}like {green}colors

    Oh sorry I forgot that, it's because my pawn studio automatically inserts that. And I'll implement the colors library later.
    Matheus28 is offline
    nOfeaR o_O
    Junior Member
    Join Date: Nov 2010
    Old 12-05-2010 , 15:01   Re: [Any] Print
    Reply With Quote #6

    blue and red color don't work
    nOfeaR o_O is offline
    Matheus28
    Senior Member
    Join Date: Aug 2009
    Old 12-05-2010 , 15:48   Re: [Any] Print
    Reply With Quote #7

    That's because it uses PrintToChat to print, I'll add the colors library later to let you use these colors.

    EDIT:

    Okay, updated the plugin, now it uses the colors.inc library

    Last edited by Matheus28; 12-05-2010 at 16:59.
    Matheus28 is offline
    nOfeaR o_O
    Junior Member
    Join Date: Nov 2010
    Old 12-06-2010 , 09:28   Re: [Any] Print
    Reply With Quote #8

    {olive} code = green color
    nOfeaR o_O is offline
    MaiSiaoSiao
    Junior Member
    Join Date: Nov 2010
    Location: On a Blue Planet
    Old 12-06-2010 , 19:58   Re: [Any] Print
    Reply With Quote #9

    Yea it works now.
    __________________
    Did you know that when someone pisses you off, it takes 42 muscles to frown, but only 4 muscles to extend your arm and slap that retard? So do the smart thing, and enjoy life.
    MaiSiaoSiao is offline
    Mecha the Slag
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 12-07-2010 , 12:36   Re: [Any] Print
    Reply With Quote #10

    You need to add a game mod check to keep the colours consistent.

    Green is yellow in Left 4 Dead.
    __________________
    Mecha the Slag 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 11:20.


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