14.12.2012, 22:50
Boom Galeraa Descupe o Icomado Novamente , Mais TO Quebrando a cabeзa; !
Too uma uma FS de cooloca caixas De som no porta mala do veiculo Porem nao esta aparecendo alguem pode me ajudar ?
Too uma uma FS de cooloca caixas De som no porta mala do veiculo Porem nao esta aparecendo alguem pode me ajudar ?
Quote:
#include <a_samp> #define RED 0xF40B74FF new Sub[MAX_VEHICLES][6]; new boolpenclose[MAX_PLAYERS]=false; new bool:ALready[MAX_PLAYERS][6]; new engine,lights,alarm,doors,bonnet,boot,objective; public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/subwoofer", cmdtext, true)) { if(IsAElegy(GetPlayerVehicleID(playerid))) { ShowPlayerDialog(playerid,7212,DIALOG_STYLE_LIST," {FFFFFF}Subwoofer Elegy system by [ISS]jumbo","{008000}Super Subwoofer\ \n{008000}Medium Subwoofer\ \n{008000}Normal Subwoofer\ \n{008000}Subwoofer\ \n{008000}Small subwoofer\ \n{800080}Remove Subwoofer\ \n{FF0000}Open/close boot","Accept","Cancel"); } else return SendClientMessage(playerid,RED,"You must be an elegy in to add a subwoofer!"); return 1; } return 0; } stock IsAElegy(vehicleid) { new result; new model = GetVehicleModel(vehicleid); switch(model) { case 562: result = model; default: result = 0; } return result; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 7212) { if(response) { new vid = GetPlayerVehicleID(playerid); switch(listitem) { case 0://super subwoofer { if(ALready[playerid][0] == false) { DestroyObject(Sub[vid][1]); DestroyObject(Sub[vid][2]); DestroyObject(Sub[vid][3]); DestroyObject(Sub[vid][4]); DestroyObject(Sub[vid][5]); Sub[vid][0] = CreateObject(2232,0,0,0,0,0,0); AttachObjectToVehicle(Sub[vid][0], vid, 0.025002, -1.729998, -0.020000, -74.369995, 87.133476, -3.015000); ALready[playerid][0]=true; ALready[playerid][1]=false; ALready[playerid][2]=false; ALready[playerid][3]=false; ALready[playerid][4]=false; SendClientMessage(playerid,RED,"Subwoofer {FF0000}Added"); } else return SendClientMessage(playerid,RED,"You already have this subwoofer"); } case 1://medium subwoofer { if(ALready[playerid][1] == false) { DestroyObject(Sub[vid][0]); DestroyObject(Sub[vid][3]); DestroyObject(Sub[vid][4]); DestroyObject(Sub[vid][5]); Sub[vid][1] = CreateObject(2231,0,0,0,0,0,0); Sub[vid][2] = CreateObject(2231,0,0,0,0,0,0); AttachObjectToVehicle(Sub[vid][1], vid, -0.039997, -2.190002, -0.229999, -85.424964, 84.419967, -6.030000); AttachObjectToVehicle(Sub[vid][2], vid, -0.829996, -2.190002, -0.229999, -85.424964, 84.419967, -6.030000); ALready[playerid][0]=false; ALready[playerid][1]=true; ALready[playerid][2]=false; ALready[playerid][3]=false; ALready[playerid][4]=false; SendClientMessage(playerid,RED,"Subwoofer {FF0000}Added"); } else return SendClientMessage(playerid,RED,"You already have this subwoofer"); } case 2://normal subwoofer { if(ALready[playerid][2] == false) { DestroyObject(Sub[vid][0]); DestroyObject(Sub[vid][1]); DestroyObject(Sub[vid][2]); DestroyObject(Sub[vid][4]); DestroyObject(Sub[vid][5]); Sub[vid][3] = CreateObject(2230,0,0,0,0,0,0); AttachObjectToVehicle(Sub[vid][3], vid, -0.664996, -2.190002, -0.229999, -85.424964, 84.419967, -6.030000); ALready[playerid][0]=false; ALready[playerid][1]=false; ALready[playerid][2]=true; ALready[playerid][3]=false; ALready[playerid][4]=false; SendClientMessage(playerid,RED,"Subwoofer {FF0000}Added"); } else return SendClientMessage(playerid,RED,"You already have this subwoofer"); } case 3://sub1 { if(ALready[playerid][3] == false) { DestroyObject(Sub[vid][0]); DestroyObject(Sub[vid][1]); DestroyObject(Sub[vid][2]); DestroyObject(Sub[vid][3]); DestroyObject(Sub[vid][5]); Sub[vid][4] = CreateObject(2229,0,0,0,0,0,0); AttachObjectToVehicle(Sub[vid][4], vid, -0.649996, -2.190002, -0.229999, -85.424964, 84.419967, -6.030000); ALready[playerid][0]=false; ALready[playerid][1]=false; ALready[playerid][2]=false; ALready[playerid][3]=true; ALready[playerid][4]=false; SendClientMessage(playerid,RED,"Subwoofer {FF0000}Added"); } else return SendClientMessage(playerid,RED,"You already have this subwoofer"); } case 4://sub 2 { if(ALready[playerid][4] == false) { DestroyObject(Sub[vid][0]); DestroyObject(Sub[vid][1]); DestroyObject(Sub[vid][2]); DestroyObject(Sub[vid][3]); DestroyObject(Sub[vid][4]); Sub[vid][5] = CreateObject(1840,0,0,0,0,0,0); AttachObjectToVehicle(Sub[vid][5], vid, -0.264997, -1.639998, 0.105000, 29.144989, 89.444953, 0.000000); ALready[playerid][0]=false; ALready[playerid][1]=false; ALready[playerid][2]=false; ALready[playerid][3]=false; ALready[playerid][4]=true; SendClientMessage(playerid,RED,"Subwoofer {FF0000}Added"); } else return SendClientMessage(playerid,RED,"You already have this subwoofer"); } case 5: { DestroyObject(Sub[vid][0]); DestroyObject(Sub[vid][1]); DestroyObject(Sub[vid][2]); DestroyObject(Sub[vid][3]); DestroyObject(Sub[vid][4]); DestroyObject(Sub[vid][5]); SendClientMessage(playerid,RED,"Subwoofer {FF0000}Deleted"); } case 6: { if(openclose[playerid] == false) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),en gine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),en gine,lights,alarm,doors,bonnet,1,objective); openclose[playerid] = true; SendClientMessage(playerid,RED,"boot {FF0000}open"); } else if(openclose[playerid] == true) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),en gine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),en gine,lights,alarm,doors,bonnet,0,objective); openclose[playerid] = false; SendClientMessage(playerid,RED,"boot {FF0000}Closed"); } } } } } return 1; } // // |