Raised This Month: $ Target: $400
 0% 

Request: once at the 15 min t_say


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
brantje
Junior Member
Join Date: Jul 2004
Old 05-17-2006 , 07:14   Request: once at the 15 min t_say
Reply With Quote #1

Hi,
Is there a script that shows a message once in the 15 min?
brantje is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-17-2006 , 07:23  
Reply With Quote #2

Code:
#include <amxmodx>   #include <amxmisc> #define PLUGIN "say"   #define VERSION "1.0"   #define AUTHOR "SweatyBanana" public plugin_init()   {       register_plugin(PLUGIN, VERSION, AUTHOR)     set_task(900.0,"advertise"); } public advertise() {     client_print(0,print_chat,"YOUR MESSAGE HERE")     set_task(get_cvar_float("anounce_Time"),"advertise")     return PLUGIN_HANDLED }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
brantje
Junior Member
Join Date: Jul 2004
Old 05-18-2006 , 05:43  
Reply With Quote #3

And can it have 5 messages that picked randrom?
That would be great!
brantje is offline
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 05-18-2006 , 08:18  
Reply With Quote #4

Code:
#include <amxmodx> const messagenum = 5 new const messages[messagenum][] = {     "message1",     "message2",     "message3",     "message4",     "message5" } public plugin_init() {     register_plugin("Announce", "1.0", "p3tsin")     register_cvar("announce_time", "900.0")     set_task(900.0, "advertise") } public advertise() {     new rnd = random_num(0,messagenum-1)     client_print(0,print_chat, "%s",messages[rnd])     set_task(get_cvar_float("announce_time"), "advertise")     return PLUGIN_HANDLED }
__________________
plop
p3tsin is offline
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 16:33.


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