Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // OTACON
- // www.pawnoscripting.com
- //--------------------------------------------------------------------//
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- #include <a_samp>
- new NewsVan [MAX_PLAYERS];
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- public OnFilterScriptInit()
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- CreateObject(1698, 3068.3342285156, -1414.4543457031, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3069.6967773438, -1414.4504394531, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3071.0417480469, -1414.4486083984, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3068.3410644531, -1411.1444091797, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3069.6945800781, -1411.1436767578, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3071.0463867188, -1411.1435546875, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3068.345703125, -1407.8386230469, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3069.6962890625, -1407.8564453125, 683.15008544922, 0, 0, 0);
- CreateObject(1698, 3071.0541992188, -1407.8840332031, 683.15008544922, 0, 0, 0);
- CreateObject(16000, 3069.4885253906, -1415.4748535156, 676.15216064453, 0, 0, 0);
- CreateObject(16000, 3067.9562988281, -1407.2806396484, 676.22821044922, 0, 0, 179.25);
- CreateObject(16000, 3067.7644042969, -1411.2316894531, 676.15179443359, 0, 0, 270.24993896484);
- CreateObject(16000, 3071.3635253906, -1410.1544189453, 676.25164794922, 0, 0, 89.997192382813);
- CreateObject(1537, 3069.5451660156, -1407.3382568359, 683.25085449219, 0, 0, 358.75);
- CreateObject(1537, 3071.0458984375, -1407.3680419922, 683.25067138672, 0, 0, 358.49743652344);
- CreateObject(2911, 3069.0639648438, -1415.4963378906, 683.27600097656, 0, 0, 0);
- CreateObject(14391, 3067.7592773438, -1412.2403564453, 684.21954345703, 0, 0, 0);
- CreateObject(1671, 3069.3801269531, -1413.0709228516, 683.73590087891, 0, 0, 270);
- CreateObject(2606, 3067.5502929688, -1410.4261474609, 684.74285888672, 0, 0, 90);
- CreateObject(2606, 3067.5517578125, -1410.4252929688, 685.25067138672, 0, 0, 90);
- CreateObject(2606, 3067.5500488281, -1412.3979492188, 684.7431640625, 0, 0, 90);
- CreateObject(2606, 3067.5769042969, -1412.4020996094, 685.25219726563, 0, 0, 90);
- CreateObject(2606, 3067.5834960938, -1414.38671875, 685.26019287109, 0, 0, 90);
- CreateObject(2606, 3067.5583496094, -1414.4038085938, 684.74359130859, 0, 0, 90);
- CreateObject(2291, 3070.8657226563, -1414.4462890625, 683.27569580078, 0, 0, 270);
- CreateObject(2291, 3070.876953125, -1413.5222167969, 683.27569580078, 0, 0, 269.99450683594);
- CreateObject(3388, 3071.5925292969, -1409.2186279297, 682.97540283203, 0, 0, 359.75);
- CreateObject(3386, 3071.5793457031, -1408.1958007813, 682.97540283203, 0, 0, 0);
- CreateObject(3386, 3071.5822753906, -1410.2225341797, 682.97540283203, 0, 0, 359.75);
- CreateObject(1671, 3069.3703613281, -1410.6733398438, 683.73590087891, 0, 0, 270);
- CreateObject(14532, 3068.1079101563, -1408.1212158203, 684.25842285156, 0, 0, 270);
- CreateObject(16782, 3071.2434082031, -1412.1335449219, 684.66906738281, 0, 0, 180);
- CreateObject(2686, 3070.7404785156, -1415.4128417969, 684.83087158203, 0, 0, 180);
- CreateObject(2684, 3068.6579589844, -1415.4260253906, 685.08966064453, 0, 0, 180.50004577637);
- CreateObject(18049, 3089.6213378906, -1414.90234375, 682.16247558594, 0, 0, 0);
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnFilterScriptExit()
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- print(" ==== Interior (NewsVan) Descargado ======");
- DestroyObject(1);
- DestroyObject(2);
- DestroyObject(3);
- DestroyObject(4);
- DestroyObject(5);
- DestroyObject(6);
- DestroyObject(7);
- DestroyObject(8);
- DestroyObject(9);
- DestroyObject(10);
- DestroyObject(11);
- DestroyObject(12);
- DestroyObject(13);
- DestroyObject(14);
- DestroyObject(15);
- DestroyObject(16);
- DestroyObject(17);
- DestroyObject(18);
- DestroyObject(19);
- DestroyObject(20);
- DestroyObject(21);
- DestroyObject(22);
- DestroyObject(23);
- DestroyObject(24);
- DestroyObject(25);
- DestroyObject(26);
- DestroyObject(27);
- DestroyObject(28);
- DestroyObject(29);
- DestroyObject(30);
- DestroyObject(30);
- DestroyObject(31);
- DestroyObject(32);
- DestroyObject(33);
- DestroyObject(34);
- DestroyObject(35);
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- main()
- {
- print(" +-----------------------------+");
- print(" | - Interior (NewsVan) - |");
- print(" | Realizado Por: Otacon |");
- print(" | www.pawnoscripting.com |");
- print(" +-----------------------------+");
- }
- public OnPlayerConnect(playerid)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- NewsVan[playerid] = 0;
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- new vehicleid = GetPlayerVehicleID(playerid);
- if(newstate == PLAYER_STATE_PASSENGER)
- {
- if (GetVehicleModel(vehicleid) == 582 || GetVehicleModel(vehicleid) == 582)
- {
- if( GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3 || GetPlayerVehicleSeat(playerid) == 4)
- {
- SetPlayerPos(playerid, 3069.4338378906,-1409.4283447266, 684.71002197266);
- SetPlayerFacingAngle(playerid, 0);
- SetCameraBehindPlayer(playerid);
- SetPlayerInterior(playerid, 1);
- NewsVan[playerid] = vehicleid;
- }
- }
- }
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- if (newkeys == 16 && NewsVan[playerid] > 0)
- {
- new Float:X,Float:Y,Float:Z;
- GetVehiclePos(NewsVan[playerid], X, Y, Z);
- SetPlayerPos(playerid, X+4, Y, Z);
- SetPlayerInterior(playerid, 0);
- NewsVan[playerid] = 0;
- }
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnVehicleDeath(vehicleid)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- if(GetVehicleModel(vehicleid) == 582)
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(NewsVan[i] != 0)
- {
- SetPlayerHealth(i, 0);
- SendClientMessage(i, 0xFFFF00FF, "[ ! ]El Vehiculo se ha Explotado y Todos los Pasajeros Han Muerto.");
- }
- }
- }
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- if(NewsVan[playerid] == 0)
- {
- NewsVan[playerid] = 0;
- }
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- NewsVan[playerid] = 0;
- /////////// Interior (NewsVan)- By - Otacon - ///////////
- return 1;
- }
- // OTACON
- // www.pawnoscripting.com
- //--------------------------------------------------------------------//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement