05.03.2012, 19:41
(
Последний раз редактировалось Unknownich; 11.05.2012 в 17:30.
)
Hi guys, this is the map I made few days ago. It's a small map but a lot of fun, ENJOY
Teleport to this location is /cannons
Video has been removed.
Teleport to this location is /cannons
Video has been removed.
pawn Код:
#include <a_samp>
#include <streamer>
new vcannon;
new vcannon2;
new pcannon;
//==============================================================================
// Fun Map by Unknownich aka Sonny
//==============================================================================
public OnFilterScriptInit()
{
print("cannon FS Loaded");
CreateDynamicObject(9254, -2271.33, -1635.58, 480.90, 0.00, 0.00, 90.00);
CreateDynamicObject(10838, -2282.47, -1638.38, 497.02, 0.00, 0.00, 0.00);
CreateDynamicObject(3491, -2328.91, -1636.79, 490.57, 0.00, 0.00, 90.00);
CreateDynamicObject(11547, -2262.51, -1641.54, 482.41, 0.00, 0.00, 0.00);
CreateDynamicObject(11547, -2257.32, -1641.62, 482.41, 0.00, 0.00, 0.00);
CreateDynamicObject(10757, -2260.23, -1660.31, 488.18, 0.00, 0.00, 87.00);
CreateDynamicObject(987, -2289.39, -1607.05, 480.94, 0.00, 0.00, 180.20);
CreateDynamicObject(987, -2301.37, -1665.27, 481.19, 0.00, 0.00, 0.00);
CreateDynamicObject(987, -2289.79, -1665.29, 480.31, 0.00, 0.00, 8.60);
CreateDynamicObject(987, -2278.02, -1663.38, 480.31, 0.00, 0.00, 359.69);
CreateDynamicObject(987, -2272.15, -1663.38, 480.31, 0.00, 0.00, 359.69);
CreateDynamicObject(987, -2266.48, -1663.30, 480.31, 0.00, 0.00, 359.69);
CreateDynamicObject(987, -2254.80, -1663.45, 480.41, 0.00, 0.00, 88.30);
CreateDynamicObject(987, -2254.37, -1638.78, 480.41, 0.00, 0.00, 89.91);
CreateDynamicObject(987, -2254.33, -1627.30, 480.41, 0.00, 0.00, 90.82);
CreateDynamicObject(987, -2254.42, -1619.39, 480.41, 0.00, 0.00, 90.82);
CreateDynamicObject(987, -2254.07, -1607.19, 480.31, 0.00, 0.00, 180.20);
CreateDynamicObject(987, -2265.84, -1606.74, 480.21, 0.00, 0.00, 180.20);
CreateDynamicObject(987, -2277.72, -1606.86, 480.21, 0.00, 0.00, 180.20);
CreateDynamicObject(10281, -2255.37, -1652.31, 481.97, 0.00, 0.00, -90.00);
CreateDynamicObject(10281, -2267.68, -1607.86, 483.10, 0.00, 0.00, 0.00);
CreateDynamicObject(7096, -2257.94, -1619.58, 485.31, 0.00, 0.00, 0.00);
CreateDynamicObject(2745, -2265.28, -1621.50, 481.47, 0.00, 0.00, 22.04);
CreateDynamicObject(2745, -2261.65, -1622.40, 481.47, 0.00, 0.00, 315.72);
CreateDynamicObject(10281, -2267.06, -1643.79, 486.16, 0.00, 0.00, -90.00);
CreateDynamicObject(10281, -2255.55, -1628.19, 481.97, 0.00, 0.00, -90.00);
CreateDynamicObject(10281, -2279.26, -1607.91, 483.10, 0.00, 0.00, 0.00);
CreateDynamicObject(14467, -2267.31, -1650.51, 482.86, 0.00, 0.00, 277.11);
CreateDynamicObject(14467, -2267.70, -1638.62, 482.86, 0.00, 0.00, 277.11);
CreateDynamicObject(2909, -2260.81, -1649.77, 481.53, 0.00, 0.00, 90.00);
CreateDynamicObject(2909, -2260.66, -1638.78, 481.53, 0.00, 0.00, 90.00);
CreateDynamicObject(2909, -2260.75, -1644.32, 481.53, 0.00, 0.00, 90.00);
CreateDynamicObject(10281, -2255.47, -1636.06, 481.97, 0.00, 0.00, -90.00);
CreateDynamicObject(1262, -2265.45, -1644.28, 481.97, 0.00, 0.00, 90.00);
CreateDynamicObject(2899, -2259.99, -1646.90, 480.45, 0.00, 0.00, 0.00);
CreateDynamicObject(2899, -2264.73, -1646.91, 480.45, 0.00, 0.00, 0.00);
CreateDynamicObject(2899, -2262.64, -1646.98, 480.45, 0.00, 0.00, 0.00);
AddStaticVehicle(451, -2307.7915, -1619.4789, 483.5628, 337.6464, 30, 1);
AddStaticVehicle(451, -2316.3313, -1620.4805, 483.4628, 337.6464, 51, 10);
AddStaticVehicle(451, -2311.8496, -1619.8772, 483.4628, 337.6464, 100, 81);
AddStaticVehicle(494, -2316.7175, -1648.3870, 483.4929, 325.5157, 22, 34);
AddStaticVehicle(494, -2305.7524, -1645.7084, 483.4929, 325.5157, 33, 4);
AddStaticVehicle(494, -2310.7854, -1646.3444, 483.4929, 325.5157, 15, 100);
AddStaticVehicle(495, -2332.3057, -1640.5621, 483.9086, -84.0000, 18, 21);
AddStaticVehicle(495, -2323.4668, -1647.3617, 483.9086, -82.0000, 0, 0);
vcannon = CreatePickup(1313,14, -2254.5, -1641.6, 481.5);
vcannon2 = CreatePickup(1313,14, -2254.5, - 1647.0, 481.5);
pcannon = CreatePickup(1313, 1, -2254.4, -1623.6, 488.1);
/*
CreateObject(9254, -2271.33, -1635.58, 480.90, 0.00, 0.00, 90.00);
CreateObject(10838, -2282.47, -1638.38, 497.02, 0.00, 0.00, 0.00);
CreateObject(3491, -2328.91, -1636.79, 490.57, 0.00, 0.00, 90.00);
CreateObject(11547, -2262.51, -1641.54, 482.41, 0.00, 0.00, 0.00);
CreateObject(11547, -2257.32, -1641.62, 482.41, 0.00, 0.00, 0.00);
CreateObject(10757, -2260.23, -1660.31, 488.18, 0.00, 0.00, 87.00);
CreateObject(987, -2289.39, -1607.05, 480.94, 0.00, 0.00, 180.20);
CreateObject(987, -2301.37, -1665.27, 481.19, 0.00, 0.00, 0.00);
CreateObject(987, -2289.79, -1665.29, 480.31, 0.00, 0.00, 8.60);
CreateObject(987, -2278.02, -1663.38, 480.31, 0.00, 0.00, 359.69);
CreateObject(987, -2272.15, -1663.38, 480.31, 0.00, 0.00, 359.69);
CreateObject(987, -2266.48, -1663.30, 480.31, 0.00, 0.00, 359.69);
CreateObject(987, -2254.80, -1663.45, 480.41, 0.00, 0.00, 88.30);
CreateObject(987, -2254.37, -1638.78, 480.41, 0.00, 0.00, 89.91);
CreateObject(987, -2254.33, -1627.30, 480.41, 0.00, 0.00, 90.82);
CreateObject(987, -2254.42, -1619.39, 480.41, 0.00, 0.00, 90.82);
CreateObject(987, -2254.07, -1607.19, 480.31, 0.00, 0.00, 180.20);
CreateObject(987, -2265.84, -1606.74, 480.21, 0.00, 0.00, 180.20);
CreateObject(987, -2277.72, -1606.86, 480.21, 0.00, 0.00, 180.20);
CreateObject(10281, -2255.37, -1652.31, 481.97, 0.00, 0.00, -90.00);
CreateObject(10281, -2267.68, -1607.86, 483.10, 0.00, 0.00, 0.00);
CreateObject(7096, -2257.94, -1619.58, 485.31, 0.00, 0.00, 0.00);
CreateObject(2745, -2265.28, -1621.50, 481.47, 0.00, 0.00, 22.04);
CreateObject(2745, -2261.65, -1622.40, 481.47, 0.00, 0.00, 315.72);
CreateObject(10281, -2267.06, -1643.79, 486.16, 0.00, 0.00, -90.00);
CreateObject(10281, -2255.55, -1628.19, 481.97, 0.00, 0.00, -90.00);
CreateObject(10281, -2279.26, -1607.91, 483.10, 0.00, 0.00, 0.00);
CreateObject(14467, -2267.31, -1650.51, 482.86, 0.00, 0.00, 277.11);
CreateObject(14467, -2267.70, -1638.62, 482.86, 0.00, 0.00, 277.11);
CreateObject(2909, -2260.81, -1649.77, 481.53, 0.00, 0.00, 90.00);
CreateObject(2909, -2260.66, -1638.78, 481.53, 0.00, 0.00, 90.00);
CreateObject(2909, -2260.75, -1644.32, 481.53, 0.00, 0.00, 90.00);
CreateObject(10281, -2255.47, -1636.06, 481.97, 0.00, 0.00, -90.00);
CreateObject(1262, -2265.45, -1644.28, 481.97, 0.00, 0.00, 90.00);
CreateObject(2899, -2259.99, -1646.90, 480.45, 0.00, 0.00, 0.00);
CreateObject(2899, -2264.73, -1646.91, 480.45, 0.00, 0.00, 0.00);
CreateObject(2899, -2262.64, -1646.98, 480.45, 0.00, 0.00, 0.00);
*/
}
public OnFilterScriptExit()
{
print("cannon FS Unloaded");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/cannons", true))
{
SetPlayerPos(playerid,-2327.66,-1634.40,484.50);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,0xff32aaff,"You have been teleported to Cannon's fun map, enjoy!");
return 1;
}
return 0;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == vcannon)
{
new Float:vx, Float:vy, Float:vz;
new car = GetPlayerVehicleID(playerid);
GetVehicleVelocity(car, vx, vy, vz);
SetVehicleVelocity(car, 60, vy, vz);
GameTextForPlayer(playerid, "~y~enjoy your flight",2000,5);
}
if(pickupid == vcannon2)
{
new Float:vx, Float:vy, Float:vz;
new car = GetPlayerVehicleID(playerid);
GetVehicleVelocity(car, vx, vy, vz);
SetVehicleVelocity(car, 50, vy, vz);
GameTextForPlayer(playerid, "~y~enjoy your flight",2000,5);
}
if(pickupid == pcannon)
{
new Float:px, Float:py, Float:pz;
GetPlayerVelocity(playerid, px, py, pz);
SetPlayerVelocity(playerid, 35, py, pz);
GameTextForPlayer(playerid, "~y~have a nice flight",2000,5);
GivePlayerWeapon(playerid, 46,1);
}
return 1;
}
