Код:
#include <a_samp>
#include <KIHC>
#include <struct>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
//Jonny's Script
stock HasClanTag(playerid,const clantag[])
{
new clan_tag[10],lname[MAX_PLAYER_NAME];
GetPlayerName(playerid,lname,sizeof lname);
format(clan_tag,strlen(clantag)+2,"[%s]",clantag);
return (strfind(lname,clan_tag)!=-1) ? (true) : (false);
}
if(HasClanTag(playerid,"[FREE]"))SetPlayerColor(playerid,0xAA3333);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Freedom/DM By Jonny");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
main()
{
print("\n----------------------------------");
print(" Freedom/DM By Jonny");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Freedom/DM/Stunting");
AddPlayerClass(0,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // player spawn cj
AddPlayerClass(293,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // Og Loc
AddPlayerClass(107,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // player spawn Grove Street member
AddPlayerClass(105,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // player spawn Grove Street member
AddPlayerClass(106,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // player spawn Grove Street member
AddPlayerClass(28,-1753.9595,959.2625,24.8828,180.2193,0,0,0,0,0,0); // dont know who he is
//cars
AddStaticVehicle(541,-1786.3391,1205.5280,24.7500,178.9352,22,1);
AddStaticVehicle(436,-2526.2947,1229.4812,37.3960,213.0593,12,12);
AddStaticVehicle(421,-1758.9066,911.5603,24.6942,88.5318,13,1);
AddStaticVehicle(411,-2354.5764,1250.2322,28.4569,90.5214,116,1);
AddStaticVehicle(506,-2722.6880,980.4581,54.1654,2.3510,6,6);
AddStaticVehicle(567,-1687.3698,1003.5350,17.4535,89.1999,88,64);
AddStaticVehicle(578,-1787.0021,1216.8849,33.2841,268.0793,1,1);
AddStaticVehicle(468,-2390.1882,1216.6508,34.3218,275.3025,46,46);
AddStaticVehicle(581,-2645.7717,1370.3085,6.7637,270.7869,66,1);
AddStaticVehicle(477,-2644.6333,1332.5770,6.9400,268.8670,94,1);
AddStaticVehicle(545,-1753.7076,948.0575,24.5991,91.6215,47,1);
AddStaticVehicle(451,-1721.4655,980.2755,30.4583,2.8676,61,61);
AddStaticVehicle(521,-2133.1162,196.6453,51.1831,269.6657,75,13);
AddStaticVehicle(522,-1730.9972,960.7554,25.0718,269.3759,8,82);
AddStaticVehicle(522,-1776.6486,960.8593,25.0737,90.1190,8,82);
AddStaticVehicle(434,-2495.3091,1216.3907,37.3868,322.3733,12,12);
AddStaticVehicle(525,-2479.9646,416.1866,27.3560,138.9263,8,82);
AddStaticVehicle(525,-2490.1135,424.5793,27.3437,137.3763,8,82);
AddStaticVehicle(416,-2705.6863,591.5366,14.0238,92.1485,7,1);
AddStaticVehicle(416,-2707.1382,611.7045,14.0236,87.1527,7,1);
AddStaticVehicle(420,-2588.6592,622.3329,14.0236,86.8374,6,6);
AddStaticVehicle(420,-2588.9475,637.5594,14.0167,87.3606,6,6);
AddStaticVehicle(480,-2572.6128,632.9766,14.0299,268.3483,45,21);
AddStaticVehicle(500,-2544.7664,604.9912,14.0298,90.9741,96,15);
AddStaticVehicle(431,-2041.6261,482.7328,34.7397,0.9856,108,1);
AddStaticVehicle(555,-2408.2747,970.5540,45.1103,179.8658,47,1);
AddStaticVehicle(513,-1361.5284,-490.1158,13.7149,206.9124,39,106);
AddStaticVehicle(512,-1439.4449,-533.7003,13.7426,212.5382,39,106);
AddStaticVehicle(597,-1573.6500,742.6940,-5.4745,90.4325,7,1);
AddStaticVehicle(597,-1573.8478,714.1404,-5.5358,88.7192,7,1);
AddStaticVehicle(599,-1611.9218,672.9374,6.8933,179.1680,7,1);
AddStaticVehicle(599,-1594.1355,673.0961,6.8946,178.0049,7,1);
AddStaticVehicle(407,-2021.2616,92.8698,27.7104,274.4587,3,1);
AddStaticVehicle(407,-2020.3599,76.2341,27.6858,276.4792,3,1);
AddStaticVehicle(490,-1600.0076,692.4629,-5.4725,179.0916,0,0);
AddStaticVehicle(523,-1589.3365,711.3475,-5.6739,272.8195,7,1);
AddStaticVehicle(523,-1589.8573,706.1879,-5.6645,268.4362,7,1);
//mta done
CreateObject(971, -1261.6678466797, 93.86270904541, 9.3199167251587, 0.000000, 0.000000, 45.654998779297); //
CreateObject(971, -1255.5446777344, 100.21684265137, 9.3199167251587, 0.000000, 0.000000, 45.653686523438); //
CreateObject(971, -1249.3487548828, 106.5789642334, 9.3199167251587, 0.000000, 0.000000, 45.653686523438); //
CreateObject(971, -1408.2199707031, -303.48226928711, 8.5900001525879, 0.000000, 0.000000, 311.87512207031); //
CreateObject(971, -1422.6875, -289.294921875, 8.5900001525879, 0.000000, 0.000000, 319.53186035156); //
CreateObject(971, -1415.91796875, -295.03125, 8.5900001525879, 0.000000, 0.000000, 319.53186035156); //
CreateObject(971, -1402.2996826172, -310.08511352539, 8.5900001525879, 0.000000, 0.000000, 311.87438964844); //
CreateObject(13607, -1318.3724365234, -120.00690460205, 16.795459747314, 0.000000, 0.000000, 0.000000); //
CreateObject(13592, -1214.8232421875, -190.78648376465, 22.998933792114, 0.000000, 0.000000, 136.96502685547); //
CreateObject(13603, -1170.7541503906, -343.12396240234, 13.193963050842, 0.000000, 0.000000, 91.295013427734); //
CreateObject(18609, -1257.0798339844, -392.43872070313, 14.320925712585, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1214.9392089844, -330.71920776367, 13.800000190735, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1207.0610351563, -330.73690795898, 17.230798721313, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1210.9453125, -330.7177734375, 15.539999961853, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1203.0874023438, -330.74179077148, 18.959329605103, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1199.1103515625, -330.744140625, 20.69695854187, 0.000000, 0.000000, 0.000000); //
CreateObject(5153, -1191.3743896484, -320.74462890625, 19.065999984741, 0.000000, 359.75, 179.54956054688); //
CreateObject(5153, -1194.9323730469, -320.68872070313, 20.639699935913, 0.000000, 359.74731445313, 179.54956054688); //
CreateObject(4652, -3966.5456542969, -1140.9321289063, 46.328544616699, 0.000000, 0.000000, 0.000000); //
CreateObject(4652, -3966.5625, -1155.7919921875, 46.328544616699, 0.000000, 0.000000, 0.000000); //
CreateObject(4652, -3966.5029296875, -1170.470703125, 46.328544616699, 0.000000, 0.000000, 0.000000); //
CreateObject(4652, -3966.65625, -1185.0390625, 46.328544616699, 0.000000, 0.000000, 0.000000); //
CreateObject(4652, -3927.9206542969, -1192.1214599609, 87.25422668457, 0.000000, 91.045043945313, 90.530029296875); //
CreateObject(4652, -3945.83984375, -1192.2421875, 87.25422668457, 0.000000, 91.043701171875, 90.52734375); //
CreateObject(4652, -3964.3518066406, -1192.7954101563, 87.25422668457, 0.000000, 91.045043945313, 90.530029296875); //
CreateObject(4652, -3982.3891601563, -1192.9606933594, 87.25422668457, 0.000000, 91.293701171875, 89.52734375); //
CreateObject(4652, -4000.0793457031, -1193.0181884766, 87.25422668457, 0.000000, 91.290893554688, 89.522094726563); //
CreateObject(4652, -4008.3525390625, -1185.6494140625, 87.25422668457, 0.000000, 91.285400390625, 359.01672363281); //
CreateObject(4652, -4008.26171875, -1170.453125, 87.25422668457, 0.000000, 91.279907226563, 359.01123046875); //
CreateObject(4652, -4008.419921875, -1155.8212890625, 87.25422668457, 0.000000, 91.279907226563, 359.01123046875); //
CreateObject(4652, -4008.3869628906, -1140.5666503906, 87.25422668457, 0.000000, 91.285400390625, 359.01672363281); //
CreateObject(4652, -4002.1313476563, -1130.8634033203, 87.25422668457, 0.000000, 89.535400390625, 270.76672363281); //
CreateObject(4652, -3983.4130859375, -1130.8544921875, 87.25422668457, 0.000000, 89.527587890625, 267.7587890625); //
CreateObject(4652, -3950.2607421875, -1131.55859375, 87.25422668457, 0.000000, 89.533081054688, 267.76354980469); //
CreateObject(4652, -3967.9599609375, -1131.2314453125, 87.25422668457, 0.000000, 89.533081054688, 267.76354980469); //
CreateObject(4652, -3931.453125, -1131.9873046875, 87.25422668457, 0.000000, 89.527587890625, 267.7587890625); //
CreateObject(4652, -3922.6875, -1137.1865234375, 87.25422668457, 0.000000, 91.777587890625, 178.99377441406); //
CreateObject(4652, -3922.7026367188, -1152.3997802734, 87.25422668457, 0.000000, 91.774291992188, 178.9892578125); //
CreateObject(4652, -3922.703125, -1167.77734375, 87.25422668457, 0.000000, 91.774291992188, 178.9892578125); //
CreateObject(4652, -3922.7641601563, -1182.7495117188, 87.25422668457, 0.000000, 91.774291992188, 178.9892578125); //
CreateObject(5878, -3940.0981445313, -1142.5693359375, 47.08715057373, 0.000000, 352.05993652344, 1.9849853515625); //
CreateObject(5878, -3993.2243652344, -1180.2607421875, 47.08715057373, 0.000000, 352.05688476563, 177.19299316406); //
CreateObject(3074, -4008.193359375, -1163.5146484375, 65.322601318359, 0.000000, 0.000000, 0.000000); //
CreateObject(3074, -3961.5563964844, -1131.9190673828, 64.77165222168, 0.000000, 0.000000, 269.42993164063); //
CreateObject(5184, -4053.6164550781, -1130.8781738281, 80.609001159668, 0.000000, 0.000000, 5); //
CreateObject(8613, -3971.9567871094, -1137.9896240234, 50.606216430664, 0.000000, 0.000000, 94.545013427734); //
CreateObject(5184, -4042.0134277344, -1128.3312988281, 72.862373352051, 0.000000, 0.000000, 4.998779296875); //
CreateObject(8613, -3983.6298828125, -1140.1596679688, 58.350982666016, 0.000000, 0.000000, 94.542846679688); //
CreateObject(5837, -3970.1506347656, -1191.7886962891, 48.124164581299, 0.000000, 0.000000, 0.000000); //
CreateObject(3601, -3927.388671875, -1185.5963134766, 54.059028625488, 0.000000, 0.000000, 180.63500976563); //
CreateObject(3073, -4006.4208984375, -1162.4110107422, 48.778877258301, 0.000000, 0.000000, 0.000000); //
//
AddStaticVehicle(451, -1318.5487060547, -115.92651367188, 14.020769119263, 0.000000, -1, -1); //0
AddStaticVehicle(411, -1309.5172119141, -116.28370666504, 14.056397438049, 0.000000, -1, -1); //1
AddStaticVehicle(587, -1327.1184082031, -112.78916168213, 14.066397666931, 0.000000, -1, -1); //2
AddStaticVehicle(409, -1334.9571533203, -112.92874145508, 14.181397438049, 0.000000, -1, -1); //3
AddStaticVehicle(508, -1302.7449951172, -113.82650756836, 14.713347434998, 0.000000, -1, -1); //4
AddStaticVehicle(429, -1284.7630615234, -119.00888061523, 14.006397247314, 0.000000, -1, -1); //5
AddStaticVehicle(506, -1341.1628417969, -112.612159729, 14.048510551453, 0.000000, -1, -1); //6
AddStaticVehicle(541, -1352.6591796875, -110.0853729248, 13.95639705658, 0.000000, -1, -1); //7
AddStaticVehicle(506, -1295.2410888672, -115.33798217773, 14.048510551453, 0.000000, -1, -1); //8
AddStaticVehicle(533, -1289.8634033203, -116.08866882324, 14.056397438049, 0.000000, -1, -1); //9
AddStaticVehicle(533, -1346.6340332031, -110.09219360352, 14.056397438049, 0.000000, -1, -1); //10
AddStaticVehicle(471, -1316.8391113281, -132.61303710938, 13.838347434998, 0.000000, -1, -1); //11
AddStaticVehicle(468, -1321.2337646484, -127.98402404785, 14.016397476196, 0.000000, -1, -1); //12
AddStaticVehicle(468, -1313.6005859375, -126.55859375, 14.016397476196, 0.000000, -1, -1); //13
AddStaticVehicle(522, -1316.6945800781, -127.36054992676, 13.916774749756, 0.000000, -1, -1); //14
AddStaticVehicle(521, -1316.9147949219, -122.7373046875, 13.916774749756, 0.000000, -1, -1); //15
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1282.4014,-831.8366,83.1406);
SetPlayerFacingAngle(playerid, 11.1217);
SetPlayerCameraPos(playerid, 1278.5062,-825.6070,83.3377);
SetPlayerCameraLookAt(playerid, 1282.4014,-831.8366,83.1406);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xAA3333 , "Welcome to WDMClan.");
SendClientMessage(playerid,0xAA3333 , "Freedom/DM/Stunting. Please read /rules");
SendClientMessage(playerid,0xAA3333 , "http://www.wdmclan.tk");
SendClientMessage(playerid,0xAA3333 , "Use /dm to go to are dm zone.");
SendClientMessage(playerid,0xAA3333 , "Use /stunts to find are stunting zones.");
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 OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xAA3333, "Help");
SendClientMessage(playerid, 0xAA3333, "For Commands Do /commands");
SendClientMessage(playerid, 0xAA3333, "For Rules Do /rules");
return 1;
}
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xAA3333, "Commands List");
SendClientMessage(playerid, 0xAA3333, "/afk /back /kill /airport");
SendClientMessage(playerid, 0xAA3333, "/dm /nos /admins");
return 1;
}
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xAA3333, "Rules");
SendClientMessage(playerid, 0xAA3333, "No DM out of dm zone.");
SendClientMessage(playerid, 0xAA3333, "No car robing.");
SendClientMessage(playerid, 0xAA3333, "All ways do as admins say.");
SendClientMessage(playerid, 0xAA3333, "/commands /help");
return 1;
}
if(strcmp(cmdtext, "/gay", true, 10) == 0)
{
new str[218], pName[20];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "%s Is Gay", pName);
SendClientMessageToAll(0xAA3333, str);
return 1;
}
if(strcmp(cmdtext, "/afk", true, 10) == 0)
{
new str[218], pName[20];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "%s Is AFk", pName);
SendClientMessageToAll(0xAA3333, str);
return 1;
}
if(strcmp(cmdtext, "/brb", true, 10) == 0)
{
new str[218], pName[20];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "%s Is BRB", pName);
SendClientMessageToAll(0xAA3333, str);
return 1;
}
if(strcmp(cmdtext, "/back", true, 10) == 0)
{
new str[218], pName[20];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(str), "%s Is Back", pName);
SendClientMessageToAll(0xAA3333, str);
return 1;
}
if (strcmp(cmdtext, "/nos", true, 10) == 0)
{
IsPlayerInAnyVehicle(playerid);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
SendClientMessage(playerid, 0xAA3333, "You have nitrous in your car.w");
return 1;
}
if (strcmp("/dm", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -3948.9331,-1151.7775,47.4051);
SendClientMessage(playerid, 0xAA3333, "Ready To Shoot!");
SendClientMessage(playerid, 0xAA3333, "To exit please use /kill and if kill you will need to do /dm again.");
GivePlayerWeapon(playerid, 32, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 30, 99999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
return 1;
}
if (strcmp("/stunts", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xAA3333, "List Of Stunt Zones");
SendClientMessage(playerid, 0xAA3333, "AirPort: /airport");
SendClientMessage(playerid, 0xAA3333, "More To Come");
return 1;
}
if (strcmp("/Airport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1319.4302,-84.7561,14.2564);
SendClientMessage(playerid, 0xAA3333, "Stunt Zone! Airport");
return 1;
}
return 0;
}
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;
}