How work this is_user_connected (Need some Help)
Hi
Is it correct. I want this, if player connecting on server then this client_cmd "mp3 play" Not work for him like if client connect then no sounds play only loading sound plugin. Here is my code. PHP Code:
|
Re: How work this is_user_connected (Need some Help)
.Dare Devil.
The "!" means "NOT". if (!is_user_connected(id)) means "if client #id NOT connected". if (!is_user_connected(0)) statement has no meaning, because there is no player #0. Player numbers are from 1 to get_maxplayers(). 0 used as "all players" "server" and "worldspawn" in some functions, but in most cases it means "no value", "not found" or "error". Quote:
PHP Code:
|
Re: How work this is_user_connected (Need some Help)
I mean this code is like i want
PHP Code:
|
Re: How work this is_user_connected (Need some Help)
PHP Code:
2) does nothing 3) use code from post #2 |
Re: How work this is_user_connected (Need some Help)
You mean this
PHP Code:
it was very important for me... |
Re: How work this is_user_connected (Need some Help)
You have to loop all players.
PHP Code:
|
Re: How work this is_user_connected (Need some Help)
Quote:
|
Re: How work this is_user_connected (Need some Help)
Now i done.
But is that correct what i done? Call the play PHP Code:
PHP Code:
PHP Code:
|
Re: How work this is_user_connected (Need some Help)
Why do you have 2 functions that do the exact same thing?
Use one of those in all places where both are used and then delete the one you didn't use. |
Re: How work this is_user_connected (Need some Help)
Quote:
|
| All times are GMT -4. The time now is 04:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.