Код:
public OnPlayerSpawn(playerid)
{
/////////////TDTDTD
TextDrawShowForPlayer(playerid, T1);
TextDrawShowForPlayer(playerid, T2);
TextDrawShowForPlayer(playerid, T4);
TextDrawShowForPlayer(playerid, TS);
TextDrawShowForPlayer(playerid, Tstea1);
TextDrawShowForPlayer(playerid, Tstea2);
TextDrawShowForPlayer(playerid, Tstea3);
TextDrawShowForPlayer(playerid, cmds);
TextDrawShowForPlayer(playerid, V);
TextDrawShowForPlayer(playerid, Teles);
TextDrawShowForPlayer(playerid, arme);
//////////////TDTDTD
SetPlayerAttachedObject( playerid, 0, 19065, 2, 0.121128, 0.023578, 0.001139, 222.540847, 90.773872, 211.130859, 1.098305, 1.122310, 1.106640 ); // SantaHat
SetPlayerAttachedObject( playerid, 0, 19078, 1, 0.329150, -0.072101, 0.156082, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // TheParrot1
//end
AntiDeAMX();
InSumo[playerid] =0;//Sumo MG
SetPlayerInterior(playerid,0);
SetPlayerArmour(playerid,100);
ClearAnimations(playerid);
PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
SetPlayerRandomSpawn(playerid);
//Logo
TextDrawHideForPlayer(playerid, RSM0);
TextDrawHideForPlayer(playerid, RSM1);
TextDrawHideForPlayer(playerid, RSM2);
TextDrawHideForPlayer(playerid, RSM3);
TextDrawHideForPlayer(playerid, RSM4);
TextDrawHideForPlayer(playerid, RSM5);
TextDrawHideForPlayer(playerid, RSM6);
TextDrawHideForPlayer(playerid, RSM7);
TextDrawHideForPlayer(playerid, RSM8);
TextDrawHideForPlayer(playerid, RSM9);
TextDrawHideForPlayer(playerid, RSM10);
TextDrawHideForPlayer(playerid, RSM11);
TextDrawHideForPlayer(playerid, RSM12);
TextDrawHideForPlayer(playerid, RSM13);
//End
SetPlayerMapIcon(playerid, 1, 428.4151,2546.8318,16.2382, 5, 0 );
SetPlayerMapIcon(playerid, 2, -1421.6687,-287.7242,14.1484, 5, 0 );
SetPlayerMapIcon(playerid, 3, 1673.9154,1447.9954,10.7841, 5, 0 );
SetPlayerMapIcon(playerid, 4, 1685.4576,-2334.1506,13.5469, 5, 0 );
SetPlayerMapIcon(playerid, 5, -2675.9092,-276.2125,7.1749, 38, 0 );
//Map icons
SetPlayerMapIcon( playerid, 1, 1884.7731,-2466.1626,13.5547, 8, 0 );
SetPlayerMapIcon( playerid, 2, -1459.840942,-204.298492,13.696103, 13, 0 );
SetPlayerMapIcon( playerid, 3, 1620.4893,1273.0208,10.8125, 38, 0 );
SetPlayerMapIcon( playerid, 4, 403.447265,2466.154296,16.506214, 42, 0 );
//LV MAP ICON
SetPlayerMapIcon(playerid, 0, 2019.5000, 1913.0396, 12.3114, 52, 0); // Bank
SetPlayerMapIcon(playerid, 5, 2287.0925, 2431.6145, 10.8203, 30, 0); // LVPD
SetPlayerMapIcon(playerid, 6, 1607.4465, 1816.1157, 10.8203, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 7, 2412.5625, 1123.8337, 10.8203, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 8, 2085.6697, 2074.0100, 11.0547, 12, 0); // RuNix's Dildos
SetPlayerMapIcon(playerid, 9, 2172.1233, 1398.1210, 11.0625, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 10, 2113.2854, 1333.5800, 10.8203, 49, 0); // BulletXT's Bar
SetPlayerMapIcon(playerid, 11, 2101.8979, 2257.3718, 11.0234, 45, 0); // Binco
SetPlayerMapIcon(playerid, 12, 2249.1479, 960.5301, 10.8130, 45, 0); // ZIP
SetPlayerMapIcon(playerid, 13, 2032.1550, 2162.4448, 10.8203, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 14, 2184.2126, 2295.6084, 10.8203, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 15, 2491.5000, 918.4912, 11.0234, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 42, 2019.3212,1007.7536,10.8203, 44, 0); // D4ragoni
SetPlayerMapIcon(playerid, 43, 2196.9517,1677.1399,12.3672, 25, 0); // Caligulas
//LS MAP ICON
SetPlayerMapIcon(playerid, 16, 1122.7067,-2037.0416,69.8942, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 17, 1857.1792,-1874.2761,13.4829, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 18, 2244.4128,-1665.5463,15.4766, 45, 0); // Binco
SetPlayerMapIcon(playerid, 19, 2309.8811,-1643.7646,14.8270, 49, 0); // Bar
SetPlayerMapIcon(playerid, 20, 1481.1427,-1771.6808,18.7958, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 21, 1172.8318,-1323.2954,15.4001, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 22, 1555.0673,-1675.6428,16.1953, 30, 0); // LSPD
SetPlayerMapIcon(playerid, 23, 1411.7141,-1700.0085,13.5395, 52, 0); // Bank
SetPlayerMapIcon(playerid, 24, 1703.9697,-1469.9948,13.5469, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 25, 499.6478,-1360.3167,16.3421, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 26, 822.3297,-1757.5181,13.6484, 45, 0); // SubUrban 2
SetPlayerMapIcon(playerid, 27, 2139.1853,-1743.2207,13.5524, 45, 0); // ZIP
//SF MAP ICON
SetPlayerMapIcon(playerid, 28, -2719.4172,-319.2030,7.8438, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 29, -2032.9038,161.4297,29.0461, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 30, -2655.0779,640.0289,14.4545, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 31, -1605.4486,710.8713,13.8672, 30, 0); // SFPD
SetPlayerMapIcon(playerid, 32, -1581.2535,867.2552,7.6953, 52, 0); // Bank
SetPlayerMapIcon(playerid, 33, -1946.0483,273.3452,35.4739, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 34, -2490.9307,-142.7729,25.6172, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 35, -1881.1808,823.0976,35.1770, 45, 0); // ZIP
//ATM-uri
SetPlayerMapIcon(playerid, 1,2172.8428, 1416.7751, 11.0625, 52, 0); // ATM
SetPlayerMapIcon(playerid, 2,2110.5188, 2060.4219, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 3,2134.0115, 2379.3159, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 4,2455.5420, 1681.4117, 11.0234, 52, 0); // ATM
SetPlayerMapIcon(playerid, 36,-2635.9067,1398.5020,7.0938, 52, 0); // ATM
SetPlayerMapIcon(playerid, 37,-1575.3977,902.4458,7.5610, 52, 0); // ATM
SetPlayerMapIcon(playerid, 38,-2434.0908,516.8967,30.3705, 52, 0); // ATM
SetPlayerMapIcon(playerid, 39,852.7184,-1760.9111,13.5491, 52, 0); // ATM
SetPlayerMapIcon(playerid, 40,1243.2965,-1561.1505,13.5545, 52, 0); // ATM
SetPlayerMapIcon(playerid, 41,1787.9928,-1592.2491,13.4870, 52, 0); // ATM
if(Minigun2[playerid] == 1)
{
SetPlayerRandomSpawnMinigun2(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid,38 , 9999);
SetPlayerWorldBounds(playerid, 1307.922, 105.1009, -2580.811, -4846.318);
DynUpdateStart(playerid);
}
if(Minigun[playerid] == 1)
{
SetPlayerRandomSpawnMinigun(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid,38 , 9999);
SetPlayerWorldBounds(playerid, 1439.348, 1271.44, 2235.263, 2080.541);
}
if(Minigun3[playerid] == 1)
{
SetPlayerRandomSpawnMinigun3(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid,38 , 9999);
SetPlayerWorldBounds(playerid, 2805.646, 2638.322, -2333.239, -2593.79);
}
if(GlassM[playerid] == 1)
{
SetPlayerRandomSpawnGlassM(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid,38 , 9999);
SetPlayerWorldBounds(playerid, 432.0814, -35.03363, 1704.97, 1483.09);
}
if(China[playerid] == 1)
{
SetPlayerRandomSpawnChina(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 37, 50);
GivePlayerWeapon(playerid, 26, 1000);
DynUpdateStart(playerid);
}
if(fy_snow[playerid] == 1)
{
SetPlayerRandomSpawnfy_snow(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 25, 9999);
GivePlayerWeapon(playerid, 37, 50);
GivePlayerWeapon(playerid, 26, 1000);
DynUpdateStart(playerid);
}
if(Medieval[playerid] == 1)
{
SetPlayerRandomSpawnMedieval(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
DynUpdateStart(playerid);
}
if(Jaildm[playerid] == 1)
{
SetPlayerRandomSpawnJaildm(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
DynUpdateStart(playerid);
}
if(Csitali[playerid] == 1)
{
SetPlayerRandomSpawnCsitali(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
DynUpdateStart(playerid);
}
if(HDM[playerid] == 1)
{
SetPlayerRandomSpawnHDM(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
}
if(Funnydm[playerid] == 1)
{
SetPlayerRandomSpawnFunnydm(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 4, 5);
GivePlayerWeapon(playerid, 23, 99999);
}
if(Pirate[playerid] == 1)
{
SetPlayerRandomSpawnPirate(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 30, 99999);
GivePlayerWeapon(playerid, 32, 99999);
GivePlayerWeapon(playerid, 24, 50);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 34, 50);
DynUpdateStart(playerid);
}
if(Vulcan[playerid] == 1)
{
SetPlayerRandomSpawnVulcan(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 35, 5);
GivePlayerWeapon(playerid, 30, 99999);
GivePlayerWeapon(playerid, 32, 99999);
GivePlayerWeapon(playerid, 24, 50);
GivePlayerWeapon(playerid, 16, 10);
GivePlayerWeapon(playerid, 34, 50);
DynUpdateStart(playerid);
}
if(Cs[playerid] == 1)
{
SetPlayerRandomSpawnCs(playerid);
ResetPlayerWeapons(playerid);
InMinigun[playerid] = 1;
DM[playerid] = 1;
GivePlayerWeapon(playerid, 18, 20);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 26, 120);
GivePlayerWeapon(playerid, 29, 400);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 34, 50);
}
return 1;
}