Raised This Month: $ Target: $400
 0% 

register_concmd help (DISPLAYING RULES)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lordshiva
BANNED
Join Date: Aug 2009
Location: Heaven
Old 10-08-2009 , 04:43   register_concmd help (DISPLAYING RULES)
Reply With Quote #1

i ve made this plugin....but it only works sometimes....but i wanted to work this when i type....whn i type amx_rules or /rules than sometimes it works sometimes dont can u correct it
PHP Code:
#include <amxmodx>
#include <colorchat>

public plugin_init() 

    
register_plugin("RULES","1.0","LORDSHIVA")
    
register_concmd("amx_rules""Rules"ADMIN_SLAY"Shows Rules")
    
register_concmd("say /rules""Rules"ADMIN_SLAY"Shows Rules")
}

public 
Rules(id)
{
     if(
is_user_alive(id))
    {
        new 
name[32];
        
get_user_name(idname31);
        
set_hudmessage(2551000, -1.00.3)
        
show_hudmessage(id"%s^rRead Clan Rules"name);
    
set_task5.0"rule"id );  
    }

public 
rule(id)
{
  
ColorChat(0RED"[KR] KNIFEROUND !!!")
  
ColorChat(0BLUE"[TC] TEAM CHOOSING")
  
ColorChat(0GREY"[PR] PISTOLROUND !!! ")
  
ColorChat(0GREEN"CLAN STARTED RACE TO 15 TEAM WINS")
  
set_task6.0"rule1"id ); 
}

public 
rule1()
{
   
ColorChat(0GREEN"LIVE !!!  LIVE !!!  LIVE !!!")
   
ColorChat(0GREEN"LIVE LIVE LIVE !!! ")
   
ColorChat(0GREEN"LIVE !!!  LIVE !!!  LIVE !!!")
   
ColorChat(0GREEN"LIVE LIVE LIVE !!! ")
   
ColorChat(0GREEN"LIVE !!!  LIVE !!!  LIVE !!!")


Last edited by lordshiva; 10-08-2009 at 23:26.
lordshiva is offline
 


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 22:37.


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