Raised This Month: $ Target: $400
 0% 

REQ|Add to some plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr_Boris
Junior Member
Join Date: Aug 2011
Old 09-20-2011 , 12:08   REQ|Add to some plugin
Reply With Quote #1

I Have this plugin :

PHP Code:
/*=====================================================
                   First Writes
=====================================================*/
public Firstwrites(id

    if(!
is_user_admin(id))
    { 
        
ColorChat(idRED"^4You have no access to that command"
        return 
PLUGIN_HANDLED 
    

     
    
// Random in Normal Color 
    
switch(random_num(0,2)) 
    { 
        case 
0:        set_hudmessage(25500, -1.0, -1.004.54.5// red 
        
case 1:        set_hudmessage(02550, -1.0, -1.004.54.5// green 
        
case 2:        set_hudmessage(00255, -1.0, -1.004.54.5// blue 
    

    
show_hudmessage(0"The First writes will started in 5 seccond"
     
    
set_task(5.0"ActionFirstwrites"
     
    return 
PLUGIN_HANDLED 


public 
ActionFirstwrites() 

    
// Random in Normal Color 
    
switch(random_num(0,3)) 
    { 
        case 
0:        set_hudmessage(25500, -1.00.42// red 
        
case 1:        set_hudmessage(02550, -1.00.42// green 
        
case 2:        set_hudmessage(00255, -1.00.42// blue 
        
case 3:        set_hudmessage(255255255, -1.00.42// white 
    

    switch(
random_num(0,4)) 
    { 
        case 
0: { 
            
show_hudmessage(0"The First writes ^" %^" moves to CT Team"random_num(0,9)) 
        } 
        case 
1: { 
            
show_hudmessage(0"The First writes ^" %d%^" moves to CT Team"random_num(0,9), random_num(0,9)) 
        } 
        case 
2: { 
            
show_hudmessage(0"The First writes ^" %d%d%^" moves to CT Team"random_num(0,9), random_num(0,9), random_num(0,9)) 
        } 
        case 
3: { 
            
show_hudmessage(0"The First writes ^" %d%d%d%^" moves to CT Team"random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9)) 
        } 
        case 
4: { 
            
show_hudmessage(0"The First writes^" %d%d%d%d%^" moves to CT Team"random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9), random_num(0,9)) 
        } 
    } 
     
    return 
PLUGIN_HANDLED 

I want First Writes The random word Automatic move to CT team
Mr_Boris is offline
Reply



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 07:53.


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