[BUG] - Welcome Sound
Hello !
When i join the server the sound doesn't play.. Code:
#include <amxmodx> |
Re: [BUG] - Welcome Sound
Quote:
PHP Code:
|
Re: [BUG] - Welcome Sound
Mate :/ are u okay ?
|
Re: [BUG] - Welcome Sound
1. client_connect() is called while the client is still connecting. Playing the sound 3 seconds after this doesn't guarantee that he is in the server and can hear the sound. It's best to use client_putinserver() for this which is called when the client enters the game.
2. You defined your path as "sound/misc/welcome.wav" but you're playing "welcome.wav" which defaults to the "sound" folder. You're not using the "szWelcome" variable there. |
Re: [BUG] - Welcome Sound
Replace
Code:
is_user_connected()Code:
is_user_connecting()http://www.amxmodx.org/api/amxmodx/is_user_connected And what said OciXCrom at 2nd point. |
Re: [BUG] - Welcome Sound
If he does that then it won't work if the player has connected which is very likely to happen when changing the forward.
|
| All times are GMT -4. The time now is 11:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.