Print function to chat
How to print function to chat with public client_putinserver(id)?
|
Re: Print function to chat
That question doesn't make sense. You can print to chat with client_print() but if you use it in client_putinserver(), the person that just joined won't be able to see it.
You should explain, in detail, what you are trying to do with your plugin to get better advice. |
Re: Print function to chat
I want to print information about a guy who just joined (if he/she has flags I'm searching).
|
Re: Print function to chat
Flags are not given until after client_authorized() is executed. So, to guarantee that flags have been given where needed, you need to use that forward. Then, you need to do a delay with set_task() if you want that person to have a chance to see it.
|
Re: Print function to chat
So something like that?
Code:
public client_putinserver(id) |
Re: Print function to chat
authorized can be called after putinserver, so use that function like fysiks said.
Or combine them. Use a variable to enable the message when authorized was called and when the putinserver is called, show the message. If they are out of sync you can create a task on putinserver to repeat until authorized has cleared. Something like: Code:
|
Re: Print function to chat
Function should return a value. Still gives me that error.
|
Re: Print function to chat
Quote:
|
Re: Print function to chat
Hmm, still isn't working. No errors, though.
Code:
public client_authorized(id) |
Re: Print function to chat
This is all pointless, just put the code in client_authorized(). It will do exactly the same thing.
|
| All times are GMT -4. The time now is 10:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.