Raised This Month: $ Target: $400
 0% 

[HelpREQ] How can I set up above avarage Round Time and colored text?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 07-30-2008 , 17:02   Re: [HelpREQ] How can I set up above avarage Round Time?
Reply With Quote #8

I already edited the main post but I'm still having problems.

I did everything perfectly fine:
PHP Code:
public plugin_init()
{
register_clcmd("say /help""player_help", -1"")
}
 
public 
player_help(id)
{
new 
msg[250];
format(msg249"^x04[XXX]^x03:")
colored_msg(idmsg)
set_task(0.2"help")
}
 
public 
colored_msg(idmsg[])
{
message_begin(MSG_ONEget_user_msgid("SayText"), {0,0,0}, id
write_byte(id
write_string(msg
message_end() 
}
 
public 
help(id)
{
colored_msg(id"^x03text text text...")

But when I typed /help while in the game, it showed the green "[XXX]" with the team colored ":" and then when the team colored "text text text..." was supose to come up, the listenserver got crashed or I just got kicked so it closed.
In the console there was this message:
Code:
Host_Error: WriteDest_Parm: not a client
What did I do wrong? What do they mean - not a client?

I want that the colored_msg function will put a green "[XXX]" at the beginning of the text.

Sorry for bothering,
dor123
__________________
O o
/¯________________________
| IMMA FIRIN' MAH LAZOR!!!
\_¯¯¯

Last edited by Dores; 07-30-2008 at 17:11.
Dores 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 05:36.


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