18.03.2012, 20:25
Код:
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; }