Raised This Month: $ Target: $400
 0% 

Script Question!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Howdy!
Senior Member
Join Date: Feb 2007
Old 07-14-2007 , 06:57   Re: Script Question!
Reply With Quote #4

Code:
 
#include <amxmodx>

const messagenum = 5
new const messages[messagenum][] = {
    "message1",
    "message2",
    "message3",
    "message4",
    "message5"
}

public plugin_init() {
    register_plugin("", "", "")
    register_cvar("announce_time", "300.0")
    set_task(300.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
}

__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! 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 21:31.


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