Raised This Month: $ Target: $400
 0% 

Registering cl_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2011 , 02:48   Re: Registering cl_cmd
Reply With Quote #1

Quote:
Originally Posted by Mankind View Post
Thanks, works fine, but how do can i set the function client_print, so when the ct writes /toss, it shows %s turned on gun toss distance? I think it goes something like this, but im not completly sure :

PHP Code:
{
new 
name[32];
get_user_name(idname31);
client_print(0print_chat"%s  turned on gun toss distance."name);

That looks correct. You would put that in the code (without the braces) right after it is enabled.

Quote:
Originally Posted by Mankind View Post
Also I tried to do the same with spray stats but it gave me error on line 27 and 57 :
The first error is obvious, look at line 27 and see (I'm assuming you speak english here). The second error shows that you need to close all your braces. You should always check that ever { had a } to match it before posting errors.
__________________
fysiks is online now
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 23:33.


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