Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- #include <a_samp>
- #include <zcmd>
- /*
- NOTA: tiene un bug de que se ven los objetos sobre puestos, pero lo pueden reparar habilitando los AttachObjectToVehicle que estas desabilitados en el code y desabilitando los habilitados correspondiente, pero haciendo eso se haga mas grande la caja del vehiculo.
- NOTE: has a bug that the objects are placed, but can be repaired by enabling AttachObjectToVehicle these disabilities as disabling the code and the corresponding enabled, but doing that box gets bigger vehicle.
- */
- #define MAX_OBJ (10)
- static CajaCarro[MAX_VEHICLES][MAX_OBJ],
- bool:UsandoCajaCarro[MAX_VEHICLES];
- COMMAND:caja(playerid, params[]) {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1," [ ! ] no estas en un vehiculo!.");
- if(GetVehicleModel(vehicleid)!=578) return SendClientMessage(playerid,-1," [ ! ] no estas en un vehiculo modelo DFT-30!.");
- switch(GetVehicleModel(vehicleid)) {
- case 578: {
- switch(UsandoCajaCarro[vehicleid]) {
- case false: {
- UsandoCajaCarro[vehicleid]=true;
- DestroyObject(CajaCarro[vehicleid][7]);
- CajaCarro[vehicleid][7]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -7.3, -0.9, 0.0, 70.0, 90.0);
- //AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -8.7, -0.9, 0.0, 70.0, 90.0);
- SetObjectMaterial(CajaCarro[vehicleid][7], 0, 578, "dft30", "dft3092flatbed128", -1);
- }
- case true: {
- UsandoCajaCarro[vehicleid]=false;
- DestroyObject(CajaCarro[vehicleid][7]);
- CajaCarro[vehicleid][7]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -5.8, 0.5, 90.0, 0.0, 90.0);
- SetObjectMaterial(CajaCarro[vehicleid][7], 0, 578, "dft30", "dft3092flatbed128", -1);
- }
- }
- }
- } return true;
- }
- public OnFilterScriptInit() {
- // ###### TESTING ######
- AddPlayerClass(145,1274.2706,-1339.6691,13.6777,262.0000,0,0,0,0,0,0); //
- AddStaticVehicleEx(575, 1260.2792, -1369.4493, 13.8190, 0.0000, random(200), random(200), 999999);
- AddStaticVehicleEx(578, 1260.4554, -1336.7083, 13.9903, 0.0000, random(200), random(200), 999999);
- // ###### TESTING ######
- for(new vehicleid=0; vehicleid<MAX_VEHICLES; vehicleid++) {
- switch(GetVehicleModel(vehicleid)) {
- case 578: {
- UsandoCajaCarro[vehicleid]=false;
- CajaCarro[vehicleid][0]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][8]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][9]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][1]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][2]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][3]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][4]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- /*
- AttachObjectToVehicle(CajaCarro[vehicleid][5], vehicleid, 1.7, -5.8, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][6], vehicleid, -1.7, -5.8, 0.5, 90.0, 0.0, 0.0);
- */
- CajaCarro[vehicleid][5]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][6]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- /*
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -7.6, 0.5, 90.0, 0.0, 90.0);
- */
- CajaCarro[vehicleid][7]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- AttachObjectToVehicle(CajaCarro[vehicleid][0], vehicleid, 0.0, -2.5, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][8], vehicleid, 0.0, 0.7, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][9], vehicleid, 0.0, -4.0, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][1], vehicleid, 1.7, -2.5, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][2], vehicleid, -1.7, -2.5, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][3], vehicleid, 1.7, 0.8, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][4], vehicleid, -1.7, 0.8, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][5], vehicleid, 1.7, -4.0, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][6], vehicleid, -1.7, -4.0, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -5.8, 0.5, 90.0, 0.0, 90.0);
- for(new index=0; index<10; index++) SetObjectMaterial(CajaCarro[vehicleid][index], 0, 578, "dft30", "dft3092flatbed128", -1);
- }
- }
- } return true;
- }
- public OnVehicleSpawn(vehicleid) {
- switch(GetVehicleModel(vehicleid)) {
- case 578: {
- for(new index=0; index<10; index++) \
- DestroyObject(CajaCarro[vehicleid][index]);
- UsandoCajaCarro[vehicleid]=false;
- CajaCarro[vehicleid][0]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][8]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][9]=CreateObject(19369, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][1]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][2]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][3]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][4]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][5]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][6]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- CajaCarro[vehicleid][7]=CreateObject(19435, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000);
- AttachObjectToVehicle(CajaCarro[vehicleid][0], vehicleid, 0.0, -2.5, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][8], vehicleid, 0.0, 0.7, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][9], vehicleid, 0.0, -4.0, -0.3, 0.0, 90.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][1], vehicleid, 1.7, -2.5, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][2], vehicleid, -1.7, -2.5, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][3], vehicleid, 1.7, 0.8, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][4], vehicleid, -1.7, 0.8, 0.5, 90.0, 0.0, 0.0);
- /*
- AttachObjectToVehicle(CajaCarro[vehicleid][5], vehicleid, 1.7, -5.8, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][6], vehicleid, -1.7, -5.8, 0.5, 90.0, 0.0, 0.0);
- */
- AttachObjectToVehicle(CajaCarro[vehicleid][5], vehicleid, 1.7, -4.0, 0.5, 90.0, 0.0, 0.0);
- AttachObjectToVehicle(CajaCarro[vehicleid][6], vehicleid, -1.7, -4.0, 0.5, 90.0, 0.0, 0.0);
- /*
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -7.6, 0.5, 90.0, 0.0, 90.0);
- */
- AttachObjectToVehicle(CajaCarro[vehicleid][7], vehicleid, 0.0, -5.8, 0.5, 90.0, 0.0, 90.0);
- for(new index=0; index<10; index++) \
- SetObjectMaterial(CajaCarro[vehicleid][index], 0, 578, "dft30", "dft3092flatbed128", -1);
- }
- } return true;
- }
- public OnVehicleDeath(vehicleid, killerid) {
- switch(GetVehicleModel(vehicleid)) {
- case 578: {
- UsandoCajaCarro[vehicleid]=false;
- for(new index=0; index<10; index++) \
- DestroyObject(CajaCarro[vehicleid][index]);
- }
- } return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement