Raised This Month: $ Target: $400
 0% 

register_concmd help (DISPLAYING RULES)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-08-2009 , 07:28   Re: Plugin Help Correction
Reply With Quote #2

There are two flaws in your code.
For the first matter, whenever using a "say" command, you should use register_clcmd and not register_concmd (else you have to go to the console and type "say /rules" to get it working).
For the second one, whenever you create a task, the third parameter identifies the task with an ID. What you are doing right now is using the player's ID to identify the task, which is nothing but a common mistake. A correct use of set_task follows:

PHP Code:
#define TASK_SHOW_RULES   1234
 
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"TASK_SHOW_RULES ); 

For more information, please check:

set_task @ funcwiki: http://www.amxmodx.org/funcwiki.php?go=func&id=253
register_clcmd @ funcwiki: http://www.amxmodx.org/funcwiki.php?go=func&id=259

Hope this helped, any further questions, please don't hesitate.

Last edited by vitorrd; 10-08-2009 at 07:31.
vitorrd 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 22:37.


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