Making a AirHorn Button help
#4

In OnPlayerKeyStateChange
Код:
if ((newkeys & KEY_CROUCH) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
                    new Float:x;
                    new Float:y;
                    new Float:z;
                    GetPlayerPos(playerid,x,y,z);
		    foreach(Player,i)
		    {
			    PlayerPlaySound(i,3200,x,y,z); //play sound for everyone, but only at horn users pos
	  	    }
	}
You don't need an MP3. Airhorn is in-game sound
Reply


Messages In This Thread
Making a AirHorn Button help - by jakejohnsonusa - 11.01.2013, 20:23
Re: Making a AirHorn Button help - by Vince - 11.01.2013, 21:14
Re: Making a AirHorn Button help - by park4bmx - 11.01.2013, 21:43
Re: Making a AirHorn Button help - by kaisersouse - 11.01.2013, 21:49

Forum Jump:


Users browsing this thread: 2 Guest(s)