okj.....
Код:
#include <a_samp>
#define TEAM_GROVE 1
#define TEAM_BALLA 2
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green (in RGBA format)
#define TEAM_BALLA_COLOR 0xFF00FFAA // Bright Purple
new gTeam[MAX_PLAYERS];
SetPlayerTeamFromClass(playerid)
{
new classid = GetPlayerSkin(playerid);
if (classid == 0) {
gTeam[playerid] = TEAM_GROVE;
} else {
gTeam[playerid] = TEAM_BALLA;
}
return 1;
}
SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_GROVE) {
SetPlayerColor(playerid, TEAM_GROVE_COLOR);
} else if (gTeam[playerid] == TEAM_BALLA) {
SetPlayerColor(playerid, TEAM_BALLA_COLOR);
}
return 1;
}
// 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(" Los Santos Dm Gamemode by Oesh");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Los Santos Dm Gamemode by Oesh");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Los Santos Dm");
AddPlayerClass(274,2034.2480,-1413.8403,16.9922,135.9203,0,0,0,0,0,0); // medic 2
AddStaticVehicle(451,2483.6233,-1682.2607,13.0390,270.3539,16,16); // grove car 1
AddStaticVehicle(451,2492.3977,-1682.1976,13.0435,270.4605,16,16); // grovecar 2
AddStaticVehicle(451,2501.8296,-1680.7534,13.0826,307.1802,16,16); // grovecar 3
AddStaticVehicle(451,2506.3411,-1675.2117,13.0813,336.3725,16,16); // grovecar 4
AddStaticVehicle(451,2507.6311,-1667.2972,13.0948,23.7891,16,16); // grovecar 5
AddStaticVehicle(451,2501.3992,-1659.3555,13.0884,47.7746,16,16); // grovecar 6
AddStaticVehicle(451,2495.0222,-1656.0685,13.0783,80.8720,16,16); // grovecar 7
AddPlayerClass(176,2078.4807,-1793.8225,13.3828,96.1685,22,1000,0,0,0,0); // barber spawnpoint
AddStaticVehicle(461,2073.5271,-1799.5759,13.1248,0.0000,53,1); // barber motor 1
AddStaticVehicle(461,2073.5271,-1791.0834,13.1356,0.0000,53,1); // barbermotor 2
AddPlayerClass(105,2528.5581,-1665.1794,15.1671,265.9992,32,200,22,100,29,100); // grove 1
AddPlayerClass(106,2528.8135,-1667.3405,15.1686,265.3725,32,200,22,100,29,100); // grove 2
AddPlayerClass(107,2529.1135,-1669.6108,15.1703,265.6859,32,200,22,100,29,100); // grove 3
AddStaticVehicle(502,2475.0835,-1655.2532,13.2237,93.8351,53,75); // hotring 1
AddStaticVehicle(502,2487.5676,-1655.4470,13.2374,87.9844,75,67); // hotring 2
AddPlayerClass(102,2230.9810,-1161.7251,29.7969,86.9474,22,100,28,300,0,0); // ballas 1
AddPlayerClass(103,2218.6802,-1178.8699,29.7971,349.4998,22,100,28,300,0,0); // ballas 2
AddPlayerClass(104,2202.5215,-1162.6754,29.7969,264.8990,22,100,28,300,0,0); // ballas 3
AddStaticVehicle(506,2217.2954,-1161.6912,25.4308,89.2972,76,76); // ballas car 1
AddStaticVehicle(506,2228.3608,-1170.1097,25.4430,92.5261,6,6); // ballas car 2
AddStaticVehicle(506,2227.8914,-1156.1898,25.5144,92.1926,52,52); // ballas car 3
AddStaticVehicle(506,2205.8469,-1172.9507,25.4316,271.0673,3,3); // ballas car 4
AddStaticVehicle(506,2205.6519,-1157.1399,25.4416,271.4393,7,7); // ballas car 5
AddPlayerClass(110,2186.3933,-998.1588,66.4688,77.7422,18,20,22,100,0,0); // yellow gang 1
AddPlayerClass(109,2194.0757,-1000.0623,62.8764,162.6564,18,20,22,100,0,0); // yellow gang 2
AddPlayerClass(108,2190.9636,-1018.6843,62.5010,340.9214,18,20,22,100,0,0); // yellow gang 3
AddStaticVehicle(477,2155.4033,-999.8809,62.4490,77.4265,0,1); // yellow car 1
AddStaticVehicle(477,2167.9463,-1002.5204,62.5565,78.1698,0,1); // yellow car 3
AddStaticVehicle(477,2178.3352,-1004.6810,62.5201,78.1385,0,1); // yellow car 2
AddStaticVehicle(477,2191.3137,-1007.2115,62.2283,79.3036,0,1); // yellow car 4
AddPlayerClass(280,1608.1038,-1718.1130,6.2188,21.4909,3,0,22,200,30,200); // cop1
AddPlayerClass(281,1598.5950,-1718.5828,6.2188,6.4508,3,0,22,200,30,200); // cop2
AddPlayerClass(282,1583.5197,-1718.6639,6.2188,354.8574,3,0,22,200,30,200); // cop3
AddPlayerClass(283,1564.4974,-1718.5792,6.2188,358.6174,3,0,22,200,30,200); // cop5
AddPlayerClass(284,1557.8136,-1718.9272,6.2188,356.4240,3,0,22,200,30,200); // cop6
AddPlayerClass(285,1552.2200,-1719.1272,6.2188,0.8107,3,0,22,200,30,200); // cop7
AddPlayerClass(286,1542.2369,-1713.6396,6.2188,320.3904,3,0,22,200,30,200); // cop8
AddPlayerClass(288,1537.4277,-1710.8507,6.2188,327.5971,3,0,22,200,30,200); // cop10
AddStaticVehicle(598,1585.8105,-1671.7679,5.6440,270.4238,0,1); // cop car 1
AddStaticVehicle(598,1600.8176,-1684.0072,5.6388,268.6060,0,1); // cop car 2
AddStaticVehicle(598,1601.8191,-1692.4832,5.6360,270.4728,0,1); // cop car 3
AddStaticVehicle(598,1601.5635,-1700.3170,5.6305,268.2973,0,1); // cop car 4
AddStaticVehicle(598,1587.3232,-1711.2450,5.6355,176.5888,0,1); // cop car 6
AddStaticVehicle(598,1574.6608,-1710.6346,5.6361,179.5309,0,1); // cop car 7
AddStaticVehicle(598,1529.0294,-1688.0242,5.6377,90.9499,0,1); // cop car 8
AddStaticVehicle(599,1602.9297,-1615.9779,13.6884,85.9953,0,1); // car cop 1
AddStaticVehicle(599,1603.5375,-1626.7820,13.6937,89.0950,0,1); // car cop 2
AddStaticVehicle(601,1577.7202,-1610.0331,13.1416,178.0196,1,1); // cop swat 1
AddStaticVehicle(601,1559.4446,-1611.0901,13.1417,181.9113,1,1); // cop swat 2
AddStaticVehicle(523,1574.1368,-1626.4406,12.9578,360.0000,0,0); // cop bike 1
AddStaticVehicle(523,1570.6350,-1624.8124,12.9304,359.1437,0,0); // cop bike 2
AddStaticVehicle(523,1568.1853,-1625.0590,12.9558,353.1057,0,0); // cop bike 3
AddStaticVehicle(523,1563.2313,-1625.3281,12.9568,356.6776,0,0); // cop bike 4
AddStaticVehicle(497,1552.4106,-1610.1365,13.5598,3.3881,0,1); // cop heli 1
AddPlayerClass(50,2075.7817,-1831.7407,13.5545,268.6854,9,0,29,100,0,0); // car mechanic
AddPlayerClass(228,1498.4303,-1581.8239,13.5498,178.3076,0,0,0,0,0,0); // bank man
AddStaticVehicle(428,1478.9224,-1587.3344,13.5828,89.3156,4,75); //
AddStaticVehicle(428,1487.4196,-1587.5186,13.5777,88.4318,4,75); //
AddStaticVehicle(428,1509.8069,-1587.9778,13.5876,88.6465,4,75); //
AddStaticVehicle(428,1526.0767,-1587.5719,13.5832,90.0841,4,75); //
AddStaticVehicle(522,1513.4548,-1459.7881,9.0647,0.2115,3,3); //
AddStaticVehicle(522,1516.1866,-1458.8622,9.0708,0.7629,3,3); //
AddStaticVehicle(522,1518.4784,-1458.5637,9.0708,5.0426,3,3); //
AddStaticVehicle(522,1520.7667,-1458.8588,9.0704,5.4667,3,3); //
AddStaticVehicle(522,1525.1890,-1460.2959,9.0707,1.7915,3,3); //
AddStaticVehicle(522,1527.1875,-1459.6436,9.0735,0.9100,3,3); //
AddStaticVehicle(522,1520.3093,-1479.2560,9.0795,176.4001,6,25); //
AddStaticVehicle(522,1522.1144,-1479.5355,9.0649,178.8732,6,25); //
AddStaticVehicle(522,1523.5748,-1478.9678,9.0708,196.7754,6,25); //
AddStaticVehicle(522,1525.7869,-1480.3746,9.0648,184.9679,6,25); //
AddStaticVehicle(522,1527.1774,-1479.9139,9.0588,186.8119,6,25); //
AddStaticVehicle(522,1528.4996,-1479.1665,9.0743,175.8877,6,25); //
AddStaticVehicle(522,1529.8909,-1479.1134,9.0724,188.8727,6,25); //
AddStaticVehicle(463,1536.7100,-1473.5546,9.0408,270.8994,11,11); //
AddStaticVehicle(463,1536.4790,-1472.4877,9.0364,286.6038,11,11); //
AddStaticVehicle(463,1536.3171,-1470.9204,9.0394,279.9395,11,11); //
AddStaticVehicle(463,1535.5712,-1469.9384,9.0391,279.4748,11,11); //
AddStaticVehicle(463,1536.8485,-1468.4408,9.0395,272.2952,11,11); //
AddPlayerClass(100,1530.7678,-1474.4779,9.5000,89.6560,22,100,25,20,5,0); // biker
AddPlayerClass(275,2002.8702,-1444.5979,13.5618,315.7302,24,2000,0,0,0,0); // medic
AddStaticVehicle(416,2006.7866,-1409.4301,17.1413,89.7990,1,3); //
AddStaticVehicle(416,2016.6028,-1409.4905,17.1413,89.4274,1,3); //
AddStaticVehicle(416,2002.8353,-1415.7429,17.1420,152.9176,1,3); //
AddStaticVehicle(416,2036.5497,-1425.8521,17.1400,180.7912,1,3); //
AddStaticVehicle(416,2036.7836,-1436.8356,17.3868,181.2671,1,3); //
AddStaticVehicle(416,2031.4639,-1445.5380,17.3231,141.8062,1,3); //
AddStaticVehicle(487,2016.0543,-1432.5487,13.7269,304.3242,29,42); //
AddPlayerClass(274,2034.2480,-1413.8403,16.9922,135.9203,24,2000,0,0,0,0); // medic 2
AddPlayerClass(0,2495.4814,-1688.8522,14.0649,1.0681,0,0,0,0,0,0);
AddStaticVehicle(488,1905.1683,-2242.0046,13.7237,6.0049,2,29); // news heli 1
AddStaticVehicle(488,1914.9701,-2238.1079,13.8540,178.5332,2,29); // news heli 2
AddStaticVehicle(488,1926.9586,-2237.6257,13.7226,349.3442,2,29); // news heli 3
AddStaticVehicle(519,1673.3206,-2488.3127,14.4736,95.6363,1,1); // plane 1
AddPlayerClass(51,1957.6694,-1441.4725,13.5567,51.6128,0,0,0,0,0,0); // skate 1
AddPlayerClass(52,1948.1561,-1443.2571,13.5528,13.6991,0,0,0,0,0,0); // skate 2
AddStaticVehicle(481,1936.3402,-1438.2220,13.0758,341.9287,65,9); // fiets 1
AddStaticVehicle(481,1937.5288,-1438.6259,13.0906,340.0712,65,9); // fiets 2
AddStaticVehicle(481,1938.7816,-1438.9557,13.0895,332.6519,65,9); // fiets 3
AddStaticVehicle(481,1940.3782,-1439.2559,13.1384,341.0660,65,9); // fiets 4
AddStaticVehicle(481,1942.3314,-1439.3601,13.2170,339.4524,65,9); // fiets 5
AddStaticVehicle(481,1944.7712,-1440.0353,13.2861,316.1157,65,9); // fiets 6
AddStaticVehicle(481,1936.4476,-1406.3832,13.0751,99.7478,65,9); // fiets 7
AddStaticVehicle(481,1933.7123,-1406.8533,13.0767,99.7473,65,9); // fiets 8
AddStaticVehicle(481,1930.3231,-1407.4353,13.0710,99.7470,65,9); // fiets 9
AddStaticVehicle(481,1925.9618,-1408.0408,13.0646,97.7618,65,9); // fiets 10
AddPlayerClass(99,1925.1354,-1382.5985,13.5677,214.3649,0,0,0,0,0,0); // skate 3
AddPlayerClass(137,1766.3617,-1364.2579,15.7578,261.8500,0,0,0,0,0,0); // zwerver 1
AddPlayerClass(136,1766.7330,-1362.5880,15.7578,263.4742,0,0,0,0,0,0); // zwerver 2
AddPlayerClass(135,1767.5413,-1359.7129,15.7578,263.4742,0,0,0,0,0,0); // zwerver 3
AddPlayerClass(134,1767.1909,-1367.6113,15.7578,280.7077,0,0,0,0,0,0); // zwerver 4
AddPlayerClass(195,2401.1877,-1719.7401,13.6153,175.7566,0,0,0,0,0,0); // grove girl
AddStaticVehicle(508,2409.3982,-1719.0371,14.0574,180.5497,1,1); // grove girl auto
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2495.4814,-1688.8522,14.0649);
SetPlayerFacingAngle(playerid, 1.0681);
SetPlayerCameraPos(playerid, 2495.6045,-1684.1265,13.4251);
SetPlayerCameraLookAt(playerid, 2495.4814,-1688.8522,14.0649);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0xFF0000AA,"welcome to los santos freeroam");
GivePlayerMoney(playerid,5000);
SendClientMessage(playerid,0xFF9900AA,"Thanks for connecting to the server you have earned $5000");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerTeamFromClass(playerid);
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid,0xFFFFFFAA);
SendClientMessage(playerid,0x33AA33AA,"Your Alive Thank God! You Have Found $1 Have Much Fun!");
GivePlayerMoney(playerid,1);
SetPlayerWantedLevel(playerid,0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerColor(playerid,0xAFAFAFAA);
SetPlayerColor(killerid,0xFF0000AA);
SendClientMessage(killerid,0xFF0000AA,"You killed someone the Cops are after you!");
SendClientMessage(playerid,0xFF0000AA,"you are DEATH you have lost $1000 at the way to the hospital");
SendClientMessage(playerid,0xAA3333AA,"The Ambulance has taken you to your spawnplace");
GivePlayerMoney(playerid,-1000);
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
SendClientMessage(killerid,0xFFFFFFAA,"Well done you wracked his car! you get $500");
GivePlayerMoney(killerid,500);
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/admincmds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Admincommands are /fuck /bc /setwarn /announce /aclearchat /bslap /(un)hide /rangeban /teleport /setgravity /setweather");
SendClientMessage(playerid,0xAA3333AA,"/nuke /ban /disarm /say /giveweapon /slap /gotoveh /(un)jail /sethp /push /settime");
SendClientMessage(playerid,0xAA3333AA,"/(un)mute /givecash /get /pstats /warn /viewcmds /logout /demolish /virtual");
SendClientMessage(playerid,0xAA3333AA,"/(un)freeze /setscore /angle /kick /setname /kill /goto /ip /pweapons /view /changepassword");
SendClientMessage(playerid,0xAA3333AA,"/gmx /makeadmin /kickall /crash /blockpm /seifocalypse /missile");
return 1;// the admin commands
}
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0); // kills the player
return 1;
}
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"For Commands type /gamecmds");// the players commands
return 1;
}
if (strcmp("/gamecmds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"/animlist a list with animations");// the players commands
SendClientMessage(playerid,0xAA3333AA,"/kill this command will kill you!");// killplayer command
return 1;
}
return 1;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid,0xAA3333AA,"You have a car! look out that you don't crash it");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
SendClientMessage(playerid,0xAA3333AA,"don't leave the car alone! or maybe you lose it");
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;
}