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

Autoresponder and Advertiser (with color and conditions!)


Post New Thread Reply   
 
Thread Tools Display Modes
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-24-2007 , 17:12   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #101

Unless you re-code the plugin a lil bit, sorry.
__________________
bmann_420 is offline
CFN|Toky
Junior Member
Join Date: Jun 2006
Old 05-10-2007 , 13:37   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #102

Hi!

I already tried to do it by myself ( I am a c++ programmer ) but I can't do it ->

I want the plugin ad_manager.sma to support advertisements with more than 1 line f.e. by using \n to start a new line.

This is the code of the output function. I think the only thing to do is a query to look up if the message contains a \n and if there is one in it to break the line at this point by splitting it in more messages (max 5).

THX for help!

Code:
public displayAd(params[])
{
    //Get the string that is going to be displayed
    new message[128];
    getString(STORE, params[1], message, 127, params[0], params[1]);
    
    //If its enabled by cvar and id is set, display to person who triggered message only
    if(get_cvar_num("ad_react_all") == 0 && params[2] != 0)
    {
        message_begin(MSG_ONE, gmsgSayText, {0,0,0}, params[2]);
        write_byte(params[2]);
        write_string(message);
        message_end();
    
    } else
    {
        //Display the message to everyone
        new plist[32], playernum, player;
        
        get_players(plist, playernum, "c");
    
        for(new i = 0; i < playernum; i++)
        {
            player = plist[i];
            
            message_begin(MSG_ONE, gmsgSayText, {0,0,0}, player);
            write_byte(player);
            write_string(message);
            message_end();
        }
    }
    
    return PLUGIN_HANDLED;
}
__________________
Regards/Gruß CFN|Toky
Administrator Clanforums Network - www.clanforums.com

CFN|Toky is offline
Send a message via ICQ to CFN|Toky Send a message via MSN to CFN|Toky Send a message via Skype™ to CFN|Toky
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 05-10-2007 , 13:58   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #103

I'm not supporting this version anymore, it's up for a total rewrite.
I'll try to get started on it next weekend, but I'll probably end up having something in between.
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 05-10-2007 , 14:50   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #104

Quote:
Originally Posted by MaximusBrood View Post
I'm not supporting this version anymore
lol, you mean you just "said" your not. Since you actually havn't for a while now eh Mr. Busy man This is one of the most usefull tools I use in my server to send information to the public.
__________________
bmann_420 is offline
IcyStorM
Junior Member
Join Date: Feb 2007
Location: #SidaVidSida @ Quakenet
Old 05-17-2007 , 04:03   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #105

FireFox sucks
Opera is the way
IcyStorM is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 05-17-2007 , 14:15   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #106

HA!

Wow
__________________
bmann_420 is offline
Tiny
Senior Member
Join Date: Jun 2004
Location: France
Old 05-27-2007 , 02:53   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #107

Well Maximus we are always checking if u've posted a newer version cause this plug is very usefull and we do like it !!!!!!!!
__________________
KiKoo et Bisous
Tiny is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-27-2007 , 03:53   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #108

The plugin runs on all my servers without any problems! GJ
__________________

Mordekay is offline
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 05-31-2007 , 00:35   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #109

Greit plugin !!! +karma :p

I just have a request if it is possible.

Can you add multilanguage ?
Like #FR #EN #RU

It will be so interesting for my server who has a lot of players from every countries

thanks a lot
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 05-31-2007 , 08:54   Re: Autoresponder and Advertiser (with color and conditions!)
Reply With Quote #110

sbeex, they must be lagging as hell then, LOL.

I use this plugin on all my servers. + when I'm done eating breakfast. Lol.
P4rD0nM3 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 23:54.


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