Raised This Month: $ Target: $400
 0% 

Colored TXT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-13-2009 , 12:16   Re: Colored TXT
Reply With Quote #10

ok i changed my idea & maked this to :

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

#define PLUGIN "Commands Helper"
#define VERSION "1.0"
#define AUTHOR "One"
new ad_time

public plugin_init()
{
    
ad_time register_cvar("ads_time","120");
    
set_task(float(get_pcvar_num(ad_time)), "ads");
}
public 
ads()
{
    switch(
random_num(1,24))
    {
        case 
1//Red
        
{
            
ColorChat(0RED"Schreib ts2 um in unser TS-Server umgeleitet zu werden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
2//Green
        
{
            
ColorChat(0GREEN"Schreib ts2 um in unser TS-Server umgeleitet zu werden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
3//Blue
        
{
            
ColorChat(0BLUE"Schreib ts2 um in unser TS-Server umgeleitet zu werden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
4//Grey
        
{
            
ColorChat(0GREY"Schreib ts2 um in unser TS-Server umgeleitet zu werden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
    case 
5//Red
        
{
            
ColorChat(0RED"Schreibe /cam um deine sicht zu wechseln.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
6//Green
        
{
            
ColorChat(0GREEN"Schreibe /cam um deine sicht zu wechseln.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
7//Blue
        
{
            
ColorChat(0BLUE"Schreibe /cam um deine sicht zu wechseln.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
8//Grey
        
{
            
ColorChat(0GREY"Schreibe /cam um deine sicht zu wechseln.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        case 
9//Red
        
{
            
ColorChat(0RED"Schreibe blackjack um Blackjack zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
10//Green
        
{
            
ColorChat(0GREEN"Schreibe blackjack um Blackjack zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
11//Blue
        
{
            
ColorChat(0BLUE"Schreibe blackjack um Blackjack zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
12//Grey
        
{
            
ColorChat(0GREY"Schreibe blackjack um Blackjack zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
    case 
13//Red
        
{
            
ColorChat(0RED"Schreibe poker um Poker zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
14//Green
        
{
            
ColorChat(0GREEN"Schreibe poker um Poker zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
15//Blue
        
{
            
ColorChat(0BLUE"Schreibe poker um Poker zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
16//Grey
        
{
            
ColorChat(0GREY"Schreibe poker um Poker zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        
    case 
17//Red
        
{
            
ColorChat(0RED"Schreibe /hats um dich zu verkleiden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
18//Green
        
{
            
ColorChat(0GREEN"Schreibe /hats um dich zu verkleiden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
19//Blue
        
{
            
ColorChat(0BLUE"Schreibe /hats um dich zu verkleiden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
20//Grey
        
{
            
ColorChat(0GREY"Schreibe /hats um dich zu verkleiden.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
    case 
21//Red
        
{
            
ColorChat(0RED"Schreibe /quiz um an unserem quiz teilzunehmen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
22//Green
        
{
            
ColorChat(0GREEN"Schreibe /quiz um an unserem quiz teilzunehmen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
23//Blue
        
{
            
ColorChat(0BLUE"Schreibe /quiz um an unserem quiz teilzunehmen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
24//Grey
        
{
            
ColorChat(0GREY"Schreibe /quiz um an unserem quiz teilzunehmen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
    case 
21//Red
        
{
            
ColorChat(0RED"Schreibe tetris um Tetris zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
22//Green
        
{
            
ColorChat(0GREEN"Schreibe tetris um Tetris zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
23//Blue
        
{
            
ColorChat(0BLUE"Schreibe tetris um Tetris zu spielen.");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
        }
        case 
24//Grey
        
{
            
ColorChat(0GREY"Schreibe tetris um Tetris zu spielen..");
            
set_task(float(get_pcvar_num(ad_time)), "ads");
    }

but error on line 57 :

PHP Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c1997-2006 ITB CompuPhaseAMX Mod X Team

Warning
Loose indentation on line 57
Error
Invalid statementnot in switch on line 57
Warning
Expression has no effect on line 57
Error
Expected token";"but found ":" on line 57
Error
Invalid expressionassumed zero on line 57
Error
Too many error messages on one line on line 57

Compilation aborted
.
4 Errors.
Could not locate output file C:\Dokumente und Einstellungen\One\Desktop\aaaaa\command_helper.amx (compile failed). 
line 57 : case 9: //Red
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 09:02.


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