Audio System
#3

Код:
CMD:carbass(playerid, params[])
{
	new i = GetBuyCarId(playerid);
	new vehicleid = GetPlayerVehicleID(playerid);
	if( CarInfo[i][cOwner] != PlayerInfo[playerid][pSQLID]) return SendClientMessage(playerid, COLOR_GREY, "This is not your car." );
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
		GetVehiclePos(vehicleid, X, Y, Z);
	    PlayAudioStreamForPlayer(playerid, "http://194.106.119.241:8500/skyplus_hi.mp3.m3u", X, Y, Z, Distance, 1);
     	return 1;
     }
     else
		SendClientMessage(playerid, 0xFFFFFFFFFFF, "You gotta be in a vehicle to use this command!");
	return 1;
}
Reply


Messages In This Thread
Audio System - by TouhGear - 18.03.2012, 20:02
Re: Audio System - by Yvax - 18.03.2012, 20:19
Re: Audio System - by TouhGear - 18.03.2012, 20:25
Re: Audio System - by TouhGear - 19.03.2012, 06:29
Re: Audio System - by ReneG - 19.03.2012, 06:36
Re: Audio System - by Rob_Maate - 19.03.2012, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)