Raised This Month: $ Target: $400
 0% 

random msg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FlyingHorse
Senior Member
Join Date: Apr 2010
Location: Under your bed.
Old 06-08-2010 , 09:42   random msg
Reply With Quote #1

Why wont this work?

PHP Code:
#include <amxmodx>
#include <colorchat>

#define MAX_MSG 4

new const PLUGIN[ ] = "Advertisements"
new const VERSION[ ] = "1.0"
new const AUTHOR[ ] = "FlyingHorse"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
}
public 
client_putinserver(id)
{
    
    
set_task(10.0"advertisements"id)
}

public 
advertisements(id)
{
    switch (
random_num(1MAX_MSG))
    {
        case 
1:
        {
            
            
ColorChat(idRED"lol")
        }
        case 
2:
        {
            
ColorChat(idRED"blah")
        }
        case 
3:
        {
            
ColorChat(idRED"Drekes has a ponytail!")
        }
        case 
4:
        {
            
ColorChat(idRED"omfg")
        }
    }
    
set_task(20.0"advertisements"id)


Last edited by FlyingHorse; 06-08-2010 at 09:47.
FlyingHorse is offline
Send a message via Skype™ to FlyingHorse
 



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 05:18.


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