Raised This Month: $ Target: $400
 0% 

Advertisements Mod -- Need Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-04-2007 , 21:06   Re: Advertisements Mod -- Need Help
Reply With Quote #2

Something like :

Code:
#include <amxmodx> #include <amxmisc> new g_AdTxt[][]= {     "The MCPD is hiring! Apply on our forums today!",     "Want to save lives? Join the MCMD today! Visit our forums to apply.",     "Chase bank is looking for a new director! Do you have what it takes? Find out on our forums!",     "Need a place to stay for the night? Visit Hotel Mecklenburg! Rooms starting at only $50!",     "Good times, good drinks, good company... Come visit us at the Irish Pub!" }; new g_enabled; new g_num = 0; public plugin_init() {     register_plugin( "Advertisements Mod", "0.1a", "turkey2112");     g_enabled = register_cvar( "amx_advertsenable", "1" );         set_task( 60.0, "advertise", 0, _, _,"b" ); } public advertise() {     if( !get_pcvar_num( g_enabled ) )         return;         client_print( 0, print_chat, g_AdTxt[g_num++] );         if( g_num > sizeof g_AdTxt - 1 )            g_num = 0; }
__________________
Arkshine is offline
 



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 10:35.


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