client_print
Hey guys.I was creating a plugin today and I got into a problem:
How am I supposed to use the "client_print" command to show a player a message, because it does not seem to work? Code:<< for( i = 1 ; i <= 32 ; i++ ) for( j = 1 ; j <= 32 ; j++ ) { get_user_name( j, value, 17 ); client_print ( i, print_chat, "You are now fighting with %s.", value ); } >> The point is that it doesn't print any message at all. Second question is: how can I move a player? I mean, like move him 5 meters left from his current position. |
Re: client_print
Code:
To print to all players use 0 as index. A problem in your code is that your name string has only 18 cells but it should have 32 cells, so increase it's size. Also, please post your full code, because we can't know what are you trying to do. To move a player you need to play with his origins: Code:
Code:
vecOrigin[ 0 ] = X AXISCode:
|
Re: client_print
The rest of the code is not relevant at all actually.
Anyway, ontopic, thanks for your answer.And thanks for the "pev" thing, I did not know about it.I apreciate it!I think I understood the concept. I have one further question if you don't mind. What if I want to send a different message to each and every player? |
Re: client_print
Quote:
Quote:
|
| All times are GMT -4. The time now is 17:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.