Quote:
Originally Posted by Mankind
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(id, name, 31);
client_print(0, print_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
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.
__________________