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.
- */
- /*
- https://www.youtube.com/watch?v=pVsT_183jbE
- */
- #include <a_samp>
- native IsValidVehicle(vehicleid);
- #define UPDATE_MINIGUN (200)
- #define VEHICLE_MINIGUN (470)
- #define IMPACT_MINIGUN (18695)
- #define SMOKE_MINIGUN (18696)
- #define WEAPPON_MINIGUN (2985)
- #define MINIGUN_WEAPPON (362)
- new MinigunPatriot[MAX_VEHICLES][9],
- UpdateMinigunPatriot2[MAX_PLAYERS];
- public OnFilterScriptInit(){
- AddPlayerClass(287,838.2986,-2056.6765,12.8672,262.0000,0,0,0,0,0,0); //testing
- AddStaticVehicleEx ( VEHICLE_MINIGUN, 838.2986,-2056.6765,12.8672,262.0000, 0, 1, 30*60000 );
- for(new vehicleid=0; vehicleid<MAX_VEHICLES; vehicleid++){
- if(GetVehicleModel(vehicleid)==VEHICLE_MINIGUN && IsValidVehicle(vehicleid)){
- DestroyObject(MinigunPatriot[vehicleid][0]);
- DestroyObject(MinigunPatriot[vehicleid][1]);
- DestroyObject(MinigunPatriot[vehicleid][2]);
- DestroyObject(MinigunPatriot[vehicleid][3]);
- DestroyObject(MinigunPatriot[vehicleid][4]);
- DestroyObject(MinigunPatriot[vehicleid][5]);
- DestroyObject(MinigunPatriot[vehicleid][6]);
- DestroyObject(MinigunPatriot[vehicleid][7]);
- DestroyObject(MinigunPatriot[vehicleid][8]);
- MinigunPatriot[vehicleid][0] = CreateObject(WEAPPON_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][1] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][2] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][3] = CreateObject(MINIGUN_WEAPPON,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][4] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][5] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][6] = CreateObject(MINIGUN_WEAPPON,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][7] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][8] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][0], vehicleid, 0.300000,-2.025000,0.000000,0.000000,0.000000,-89.099983);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][1], vehicleid, 0.300000,-2.925001,-0.449999,0.000000,0.000000,178.199890);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][2], vehicleid, 0.225000,-3.000001,-0.375000,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][3], vehicleid, 0.824999,0.750000,0.450000,-183.599884,29.700004,86.399986);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][4], vehicleid, 0.824999,1.950000,-0.899999,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][5], vehicleid, 0.824999,2.025000,-0.824999,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][6], vehicleid, -0.899999,0.750000,0.450000,-183.599884,29.700004,86.399986);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][7], vehicleid, -0.899999,1.950000,-0.899999,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][8], vehicleid, -0.824999,2.025000,-0.824999,0.000000,0.000000,0.000000);
- }
- }
- return true;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
- new vehicleid = GetPlayerVehicleID(playerid);
- new seatid = GetPlayerVehicleSeat(playerid);
- if(newkeys & KEY_YES){
- if(GetVehicleModel(vehicleid)==VEHICLE_MINIGUN && IsPlayerInAnyVehicle(playerid)){
- KillTimer(UpdateMinigunPatriot2[playerid]);
- UpdateMinigunPatriot2[playerid]=SetTimerEx("UpdateMinigunPatriot",UPDATE_MINIGUN,true,"ddd",playerid, seatid, vehicleid);
- }
- }
- if(oldkeys & KEY_YES){
- if(GetVehicleModel(vehicleid)==VEHICLE_MINIGUN && IsPlayerInAnyVehicle(playerid)){
- KillTimer(UpdateMinigunPatriot2[playerid]);
- switch(seatid){
- case 2,3:{DestroyObject(MinigunPatriot[vehicleid][1]); DestroyObject(MinigunPatriot[vehicleid][2]);}
- case 1:{DestroyObject(MinigunPatriot[vehicleid][4]); DestroyObject(MinigunPatriot[vehicleid][5]);}
- case 0:{DestroyObject(MinigunPatriot[vehicleid][7]); DestroyObject(MinigunPatriot[vehicleid][8]);}
- }
- }
- }
- return true;
- }
- forward UpdateMinigunPatriot(playerid, seatid, vehicleid);
- public UpdateMinigunPatriot(playerid, seatid, vehicleid){
- switch(seatid){
- case 2,3:{
- DestroyObject(MinigunPatriot[vehicleid][1]);
- DestroyObject(MinigunPatriot[vehicleid][2]);
- MinigunPatriot[vehicleid][1] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][2] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][1], vehicleid, 0.300000,-2.925001,-0.449999,0.000000,0.000000,178.199890);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][2], vehicleid, 0.225000,-3.000001,-0.375000,0.000000,0.000000,0.000000);
- }case 1:{
- DestroyObject(MinigunPatriot[vehicleid][4]);
- DestroyObject(MinigunPatriot[vehicleid][5]);
- MinigunPatriot[vehicleid][4] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][5] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][4], vehicleid, 0.824999,1.950000,-0.899999,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][5], vehicleid, 0.824999,2.025000,-0.824999,0.000000,0.000000,0.000000);
- }case 0:{
- DestroyObject(MinigunPatriot[vehicleid][7]);
- DestroyObject(MinigunPatriot[vehicleid][8]);
- MinigunPatriot[vehicleid][7] = CreateObject(IMPACT_MINIGUN,0,0,-1000,0,0,0,100);
- MinigunPatriot[vehicleid][8] = CreateObject(SMOKE_MINIGUN,0,0,-1000,0,0,0,100);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][7], vehicleid, -0.899999,1.950000,-0.899999,0.000000,0.000000,0.000000);
- AttachObjectToVehicle(MinigunPatriot[vehicleid][8], vehicleid, -0.824999,2.025000,-0.824999,0.000000,0.000000,0.000000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement