Код:
#include <a_samp>
#pragma tabsize 0
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("pns mod");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddStaticVehicle(541,2107.1584,1643.0383,10.3772,99.8403,26,11);
AddStaticVehicle(451,272.5781,-1322.2544,53.2201,304.9609,17,117); //
AddStaticVehicle(405,587.4480,-1235.6633,17.6231,292.4614,24,1); //
AddStaticVehicle(506,883.6102,-1411.0443,12.7490,269.0204,7,7); //
AddStaticVehicle(506,912.5300,-1349.1259,13.0044,4.1212,7,7); //
AddStaticVehicle(489,1067.5706,-1199.4624,19.0671,357.6383,24,6); //
AddStaticVehicle(458,622.1853,-1528.9049,14.9603,175.8011,101,1); //
AddStaticVehicle(458,581.5385,-1577.0480,15.9724,91.2418,101,1); //
AddStaticVehicle(458,624.2097,-1645.6819,15.9901,180.5160,101,1); //
AddStaticVehicle(458,761.3151,-1679.2871,12.2167,273.4622,101,1); //
AddStaticVehicle(458,1110.8893,-1746.4573,13.3587,88.1714,101,1); //
AddStaticVehicle(463,1126.2343,-1626.0251,13.1692,99.9453,132,112); //
AddStaticVehicle(463,1125.9517,-1625.9452,13.1661,81.9956,132,112); //
AddStaticVehicle(463,1129.8950,-1626.2717,13.2539,82.5015,132,112); //
AddStaticVehicle(463,1055.0956,-1429.4926,13.0870,2.3112,132,112); //
AddStaticVehicle(579,1601.6105,1877.6049,10.6655,85.2701,53,53); //
AddStaticVehicle(579,1431.9982,1977.6929,10.6725,89.1303,53,53); //
AddStaticVehicle(579,1061.2590,1958.4567,10.6695,94.5062,53,53); //
AddStaticVehicle(541,2157.3555,1983.2631,10.3689,180.3230,26,15); //
AddStaticVehicle(541,2542.4646,1681.0199,10.3686,182.3736,26,15); //
AddStaticVehicle(541,2450.0671,1618.1637,10.3686,86.4393,26,15); //
AddStaticVehicle(528,2021.5184,1343.3318,10.8630,8.5645,0,0); //
AddStaticVehicle(577,1584.3073,1188.8198,10.6834,183.0645,1,3); //
AddStaticVehicle(497,1650.7852,1539.1569,10.9426,1.0569,0,0); //
AddStaticVehicle(497,1631.3354,1539.6519,10.9516,0.7775,6,6); //
AddStaticVehicle(469,1603.1521,1634.3279,10.8429,347.0067,1,3); //
AddStaticVehicle(519,1571.5469,1449.6025,11.7517,93.7315,5,5); //
AddStaticVehicle(519,1995.2999,-2595.0791,14.4717,89.3802,1,1); //
AddStaticVehicle(593,1893.6528,-2629.3369,13.9791,356.6867,68,3); //
AddStaticVehicle(476,1747.6866,-2626.7234,14.2602,1.0696,3,3); //
AddStaticVehicle(593,1680.1844,-2627.9114,13.9797,359.9746,68,0); //
AddStaticVehicle(437,1113.1759,1730.3507,10.9814,181.0505,79,7); //
AddStaticVehicle(437,1092.3809,1726.6731,10.9400,90.4104,79,7); //
AddStaticVehicle(579,2375.7102,-1302.1731,23.8404,179.8583,53,53); //
AddStaticVehicle(579,2337.4448,-1454.1509,23.8384,176.0698,53,53); //
AddStaticVehicle(581,2456.2666,-1327.6852,23.5932,183.2962,72,1); //
AddStaticVehicle(581,2638.0537,-1517.4189,26.5556,181.2680,72,1); //
AddStaticVehicle(581,2793.5840,-1896.5980,10.6778,261.2550,72,1); //
AddStaticVehicle(541,2566.2200,-1402.7816,26.0500,8.2426,78,88); //
AddStaticVehicle(541,2542.9063,-1190.0928,59.6686,97.0200,78,88); //
AddStaticVehicle(541,2076.7637,-1243.3958,23.5184,181.7361,78,88); //
AddStaticVehicle(526,2498.7627,-1176.2368,46.5350,86.8712,17,1); //
AddStaticVehicle(526,2135.6760,-1118.8276,25.0886,87.7359,17,1); //
AddStaticVehicle(526,1993.9001,-1140.2228,25.3448,84.9307,17,1); //
AddStaticVehicle(526,2059.9719,-1201.8826,23.6865,3.5653,17,1); //
AddStaticVehicle(535,2645.1919,-1989.3110,13.3147,179.5163,28,1); //
AddStaticVehicle(534,2684.9404,-1987.2986,13.2963,177.9317,42,42); //
AddStaticVehicle(567,2684.9734,-2022.5973,13.4227,358.2533,88,64); //
AddStaticVehicle(535,2657.8716,-1926.5394,13.1733,88.5878,28,1); //
AddStaticVehicle(504,2500.5950,-1669.4462,13.1580,0.0016,34,9); //
AddStaticVehicle(522,2493.3435,-1656.3339,12.9129,88.2600,51,118); //
AddStaticVehicle(522,2495.4949,-1681.2983,12.9083,97.1647,39,106); //
AddStaticVehicle(492,2505.9355,-1678.9049,13.2418,320.7708,28,56); //
AddStaticVehicle(474,2372.6482,-1644.9033,13.2588,359.3389,81,1); //
AddStaticVehicle(410,2316.0342,-1652.2406,13.9362,270.5245,9,1); //
AddStaticVehicle(526,2298.8076,-1645.0317,14.5127,179.6429,21,1); //
AddStaticVehicle(551,2297.6633,-1633.8838,14.4918,90.7138,75,1); //
AddStaticVehicle(411,2286.4063,-1683.0793,13.7064,359.7693,116,1); //
AddStaticVehicle(516,2279.0796,-1678.3411,14.4917,96.3754,122,1); //
AddStaticVehicle(522,2067.6072,-1601.2046,13.0904,79.9968,51,118); //
AddStaticVehicle(411,2080.3799,-1599.4685,13.2374,271.6016,75,1); //
AddStaticVehicle(411,2071.3730,-1772.7275,13.2730,180.9323,64,1); //
AddStaticVehicle(526,2103.1750,-1777.3188,13.1798,83.4838,21,1); //
AddStaticVehicle(466,2119.8425,-1783.1573,13.1650,1.7924,45,88); //
AddStaticVehicle(526,2103.1724,-1777.2672,13.1810,83.3657,37,0); //
AddStaticVehicle(419,2148.0769,-1193.9237,23.6101,89.6277,13,76); //
AddStaticVehicle(562,2039.8259,1268.5100,10.3398,10.8942,35,1); //
AddStaticVehicle(480,2050.0945,1278.8655,10.4701,171.6547,2,2); //
AddStaticVehicle(477,2034.8665,1067.3248,10.5757,3.4219,36,1); //
AddStaticVehicle(409,2034.6302,1007.3426,10.5846,179.2408,1,1); //
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/niespodzianka", true) == 0)
{
new string[50];
new imie[MAX_PLAYER_NAME];
GetPlayerName(playerid,imie, sizeof(imie));
format(string, sizeof(string), "%s jest botem, no i chuj ?",imie);
SendClientMessageToAll(0xC2A2DAAA,string);
return 1;
}
return 0;
}
if(strcmp(cmdtext, "/lotnisko-lv", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),1594.4186,1443.9087,10.8288);
SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
}
else
{
SetPlayerFacingAngle(playerid,20);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1594.4186,1443.9087,10.8288);
}
return 1;
}
if(strcmp(cmdtext, "/drag3", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1084.2367,412.3698,14.1484);
SetVehicleZAngle(GetPlayerVehicleID(playerid),20);
}
else
{
SetPlayerFacingAngle(playerid,20);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1084.2367,412.3698,14.1484);
}
return 1;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}