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

Add advertising


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MikeRussia
Member
Join Date: Nov 2007
Location: Moscow, capital of Russi
Old 04-05-2009 , 10:34   Add advertising
Reply With Quote #1

Hello everyone!

For my site i'm making builds based on AMX-X and I would like to introduce my site advertise to the plugins.

How can I make it real? Preferbly to inject such an advertise in standart plugins. Thanks.
__________________
gaben module is bullshit
MikeRussia is offline
Send a message via ICQ to MikeRussia Send a message via Skype™ to MikeRussia
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-05-2009 , 11:39   Re: Add advertising
Reply With Quote #2

Offtop:
Quote:
gaben module is bullshit
Нехорошая подпись
Quote:
Moscow, capital of Russia
-> Moscow is the capital of Russia.

Quote:
Biography
From Moscow, Russia (Very big country, where Putin is a president)
Medvedev maybe?

How would you introduce your site? Banners, messages?
TheRadiance is offline
Send a message via ICQ to TheRadiance
MikeRussia
Member
Join Date: Nov 2007
Location: Moscow, capital of Russi
Old 04-05-2009 , 12:07   Re: Add advertising
Reply With Quote #3

Quote:
Moscow is the capital of Russia.
В данном случае можно и через запятую, также как мы пишем адрес.

Quote:
Medvedev maybe?
Когда подпись делал, еще был Путин :-D Президенты меняются - подписи нет))


I think that text message like "Downloaded from %sitename%" will be enough.
__________________
gaben module is bullshit
MikeRussia is offline
Send a message via ICQ to MikeRussia Send a message via Skype™ to MikeRussia
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-05-2009 , 12:14   Re: Add advertising
Reply With Quote #4

Если это то, о чём ты говорил, то вот:
PHP Code:
#include < amxmodx >

new g_pMsgFreq
new g_pMsgText

public plugin_init ( )
{
    
register_plugin "Advertise""1.0""MikeRussia" )

    
g_pMsgFreq register_cvar "adv_msg_freq""45.0" )
    
g_pMsgText register_cvar "adv_msg_text""yoursitename" )

    
set_task get_pcvar_float g_pMsgFreq ), "Task_Advertise")
}

public 
Task_Advertise ( )
{
    new 
szMsg 32 ]
    
get_pcvar_string g_pMsgTextszMsgsizeof szMsg ) - )
    
client_print 0print_chat"Downloaded from %s"szMsg )
    
set_task get_pcvar_float g_pMsgFreq ), "Task_Advertise")

Сам сможешь скомпилировать?
TheRadiance is offline
Send a message via ICQ to TheRadiance
MikeRussia
Member
Join Date: Nov 2007
Location: Moscow, capital of Russi
Old 04-05-2009 , 12:37   Re: Add advertising
Reply With Quote #5

Да, только хорошо бы это в какой-нибудь их стандартных плагинов засунуть..

Если я добавлю код в adminhelp.sma сообщение выводиться будет?
__________________
gaben module is bullshit
MikeRussia is offline
Send a message via ICQ to MikeRussia Send a message via Skype™ to MikeRussia
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-05-2009 , 14:34   Re: Add advertising
Reply With Quote #6

Keep it in English only.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-05-2009 , 21:42   Re: Add advertising
Reply With Quote #7

Quote:
Keep it in English only.
Ok, sorry
Quote:
Если я добавлю код в adminhelp.sma сообщение выводиться будет?
Yes, it will, but you need to place it in a right part of script.
TheRadiance is offline
Send a message via ICQ to TheRadiance
Old 04-06-2009, 08:18
MikeRussia
This message has been deleted by MikeRussia. Reason: I'm stupid oO
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 06:37.


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