Raised This Month: $ Target: $400
 0% 

Add advertising


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-05-2009 , 12:14   Re: Add advertising
Reply With Quote #1

Если это то, о чём ты говорил, то вот:
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
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 02:26.


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