Check If SteamID is Connected
Hello, What i am trying to do is to check if STEAMID is in the server.
If not the item is disabled. PHP Code:
|
Re: Check If SteamID is Connected
Show the whole code (where is szAuth coming from?).
You can look for player via cmd_target() using name, userid, or authid. It will return 0 if not found. |
Re: Check If SteamID is Connected
Im pretty sure i got alot of code missing.
PHP Code:
PHP Code:
PHP Code:
|
Re: Check If SteamID is Connected
Quote:
Anyways, to check if a player is in the server, you can use find_player(): PHP Code:
|
Re: Check If SteamID is Connected
Thanks just one more question. If i want something to happen just to that steam id
will this code work. PHP Code:
|
Re: Check If SteamID is Connected
find_player returns on success users index otherwise 0 (or false)
So your code should look like PHP Code:
|
| All times are GMT -4. The time now is 21:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.