AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Add advertising (https://forums.alliedmods.net/showthread.php?t=89359)

MikeRussia 04-05-2009 10:34

Add advertising
 
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.

TheRadiance 04-05-2009 11:39

Re: Add advertising
 
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? :D

How would you introduce your site? Banners, messages?

MikeRussia 04-05-2009 12:07

Re: Add advertising
 
Quote:

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

Quote:

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


I think that text message like "Downloaded from %sitename%" will be enough.

TheRadiance 04-05-2009 12:14

Re: Add advertising
 
Если это то, о чём ты говорил, то вот:
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")


Сам сможешь скомпилировать?

MikeRussia 04-05-2009 12:37

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

Если я добавлю код в adminhelp.sma сообщение выводиться будет?

Exolent[jNr] 04-05-2009 14:34

Re: Add advertising
 
Keep it in English only.

TheRadiance 04-05-2009 21:42

Re: Add advertising
 
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.


All times are GMT -4. The time now is 11:00.

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