[Ajuda] GM Windows - Conflito com Host Linux
#1

Olб pessoal.
Bom estou utilizando este GameMode:

LINK: https://sampforum.blast.hk/showthread.php?tid=427971

PHP код:
/* Hard DM v1.2c BUILD 91
- GM Codado por Arakuta;
- ZCMD, DOF2, SSCANF2 by Zeex, Double-o-Seven e ****** respectivamente.
    
    *Versгo 1.2c, 04/04/13
    - Adicionado comando /hudcolor (O Player pode trocar a cor do HUD);
    - Adicionado mais mapas;
    - Configuraзхes rбpidas;
*/
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <DOF2>
#undef MAX_PLAYERS
// =============== CONFIGURAЗХES RБPIDAS ===========
#define MAX_PLAYERS 25
#define ipservidor  "ip.exemplo.com.br"
#define modetext    "Hard DM 1.2.92"
#define hostnametext    "hostname [BRA] Hard DM 1.2c [SKIN/LAG]"
#define raidcall    "XXXXXXX"
#define adicionado  "- Comando /hudcolor - O player pode trocar a cor do HUD\n - Novos mapas: Regular Tom e Green Palms\n- Mini combate entre players, morra pra um e descubra!"
#define removido    ""
// =============== CONFIGURAЗХES RБPIDAS ===========
#define DIALOG_REGISTER 1
#define DIALOG_LOGIN    2
#define DIALOG_COR      147
#define DIALOG_HUD      4
#define vermelho 0xFF2222FF
#define verde    0x22FF22FF
#define azul     0x4444FFFF
#define amarelo  0xFFFF00FF
#define rosa     0xFF00FFFF
#define ciano    0x00FFFFFF
#define branco   0xFFFFFFFF
#define cinza    0x888888FF
#define preto    0x222222FF
#define marrom   0x8A3A40FF
#define laranja  0xFF7A17FF
#define shopbuy  0x77FF77FF
enum info
{
    
admin,
    
matou,
    
morreu,
    
losses,
    
wins,
    
score
};
// Variбveis
new spree[MAX_PLAYERS];
new 
skine[MAX_PLAYERS];
new 
Duel[MAX_PLAYERS];
new 
Recorde[MAX_PLAYERS];
new 
RecordeSpree[MAX_PLAYERS];
new 
Player[MAX_PLAYERS][info];
new 
HudColor[MAX_PLAYERS];
new 
cMatou[MAX_PLAYERS][MAX_PLAYERS];
new 
area;
new 
tbase;
new 
inicio;
new 
ready;
new 
votesim;
new 
votenao;
new 
liberarvote;
new 
tvtimer[MAX_PLAYERS];
// Bools
new bool:Morto[MAX_PLAYERS];
new 
bool:afk[MAX_PLAYERS];
new 
bool:votou[MAX_PLAYERS];
new 
bool:Lagduel[MAX_PLAYERS];
new 
bool:Aj[MAX_PLAYERS];
new 
bool:liberarvotes;
new 
bool:blockvote;
new 
bool:votestart;
new 
bool:FreeArmour;
new 
bool:Logado[MAX_PLAYERS];
new 
bool:des;
 
// Texts
new Text:hard;
new 
Text:clock;
new 
Text:TLocal;
new 
Text:TVersion;
new 
Text:Textdraw0;
new 
Text:Textdraw4;
new 
Text:votacao;
new 
PlayerText:hudtext[MAX_PLAYERS];
new 
PlayerText:combate[MAX_PLAYERS];
// "Mapas"
new Float:bacres[82][4] =
{
    {
140.4572,-80.1686,1.5781},{155.0603,-66.4880,1.5781,315.7962},{171.5905,-64.2563,1.5781,276.0024},{170.6001,-44.4879,1.5781,17.5234},
    {
173.7223,-27.9610,1.5781,347.1298},{168.6838,-13.0278,1.5781,20.3434},{185.0400,-11.2880,1.5781,270.3625},{193.3251,-23.3691,1.4297,212.0819},
    {
207.6754,-29.3133,1.5781,244.9822},{222.1050,-15.5163,1.5781,315.1696},{226.3243,-1.2474,2.4308,349.9500},{236.5176,16.0342,2.4297,330.5232},
    {
231.3606,35.2015,2.4297,15.9570},{253.1379,18.1768,2.4524,225.8689},{253.1379,18.1768,2.4524,225.8689},{273.8789,20.0858,2.4289,276.9427},
    {
284.6028,17.0863,2.5222,231.8221},{302.8568,6.9915,3.7962,244.9823},{312.1710,20.1853,8.1593,316.1097},{327.0838,16.2603,6.2838,251.5624},
    {
335.4275,2.6744,4.4673,208.6353},{343.6621,-14.3351,1.9522,189.5219},{342.9180,-38.0557,1.8585,177.9284},{337.2488,-36.2780,1.4387,91.3280},
    {
327.6458,-36.1195,1.5474,90.1943},{317.0358,-52.8809,1.5781,140.6414},{318.7156,-72.7942,1.4297,166.9617},{286.3114,-87.7476,1.4204,143.4615},
    {
261.0105,-78.4632,1.5781,82.0476},{238.7885,-87.3404,1.5703,153.1749},{216.8895,-93.5024,1.5709,101.7878},{206.4675,-75.9504,1.4297,9.9802},
    {
215.5320,-67.9264,1.4289,309.5064},{229.7353,-108.9484,1.4297,206.4421},{217.3268,-121.6898,1.5701,131.8681},{197.8722,-114.4613,1.5505,73.9008},
    {
191.9395,-103.0521,1.5484,24.0804},{178.4707,-103.4550,1.5391,97.0877},{162.9980,-115.3443,1.5535,108.9945},{151.6197,-126.3342,1.5684,132.1814},
    {
149.4006,-144.6402,1.4337,175.1084},{139.0685,-161.0197,1.5781,162.5750},{153.7108,-169.3763,1.5781,242.4757},{156.1998,-157.2634,5.0786,118.8038},
    {
166.3821,-160.3346,6.7786,201.4287},{166.0101,-172.3621,9.7786,165.7084},{162.8838,-192.9452,5.0786,171.3484},{148.9453,-187.1034,5.0786,62.6207},
    {
159.7483,-181.8696,1.5781,273.4726},{182.7027,-177.4706,1.4297,314.2065},{199.7441,-176.1227,1.5781,271.2793},{189.2818,-200.6559,1.5781,193.5719},
    {
212.2011,-203.7287,1.5781,268.1461},{217.8254,-219.1333,1.5781,200.1521},{225.8496,-233.6361,1.5781,192.0614},{214.6966,-241.6465,1.5781,85.5271},
    {
205.8305,-233.8028,1.7786,1.2397},{197.2234,-226.9187,1.7786,76.7537},{214.2133,-225.5258,1.7786,278.8557},{204.3394,-256.5594,1.5781,166.3680},
    {
214.9086,-264.1443,1.5781,234.6753},{200.9864,-278.7174,1.4297,146.0011},{218.3615,-285.7347,1.4297,249.0888},{179.8250,-282.1354,1.5781,82.0605},
    {
176.7316,-249.9162,1.5781,4.6865},{176.4313,-228.7457,1.5781,14.0866},{165.3694,-216.8995,1.5781,79.2605},{157.3582,-212.1660,1.4297,57.6403},
    {
141.1546,-218.7088,1.5781,115.2942},{116.1123,-205.3525,1.5781,59.5203},{93.9525,-194.3860,1.4844,8.7599},{73.3225,-198.7307,1.5975,32.5734},
    {
72.2550,-224.2515,1.5781,180.4682},{82.6234,-234.7543,1.5781,216.5018},{53.5013,-239.4388,1.5781,89.2873},{39.5089,-220.1186,5.1473,357.2533},
    {
23.1435,-221.9648,2.3813,109.9674},{29.0345,-225.8213,5.4733,266.0883},{31.7391,-239.1264,9.4733,197.3883},{33.0457,-252.9167,13.4733,176.3949},
    {
38.0624,-279.5067,2.0453,186.4216},{58.9117,-283.1305,1.5781,305.4893}
};
new 
Float:bayside[24][4] =
{
    {-
2468.0215,2237.4319,4.7984},{-2485.0359,2254.2471,4.9844},{-2475.3516,2272.6443,4.9844},{-2457.2693,2298.8416,4.9844},
    {-
2476.6292,2317.3481,4.9844},{-2503.9075,2324.9614,4.9844},{-2507.1882,2350.9883,4.9861},{-2550.2883,2356.5413,4.9844},
    {-
2562.0491,2359.0034,7.8263},{-2584.3374,2397.5234,12.9474},{-2612.7695,2384.6772,10.0333},{-2615.4385,2347.1699,8.3455},
    {-
2615.6824,2293.8625,8.1948},{-2588.0874,2268.9619,7.4062},{-2554.4294,2290.6252,4.8359},{-2512.8477,2274.6204,4.9844},
    {-
2457.1650,2335.6602,4.8359},{-2470.6943,2364.3293,8.3181},{-2505.1169,2392.3538,16.1834},{-2513.3008,2415.4797,16.5899},
    {-
2531.4885,2409.1919,15.7561},{-2555.2495,2401.1543,14.7188},{-2547.6160,2432.5596,19.0258},{-2525.4048,2448.0127,17.7409}
};
new 
Float:psquare[35][4] =
{
    {
1596.8507,-1722.8380,13.5469},{1579.9988,-1738.7202,13.5362},{1562.5863,-1748.4680,13.5469},{1546.5222,-1741.7242,13.5469},
    {
1538.8545,-1751.7744,14.0469},{1540.6281,-1721.4960,13.5546},{1522.0986,-1713.3840,13.5469},{1521.4884,-1694.0144,13.5469},
    {
1537.5625,-1693.1890,13.5469},{1545.8583,-1676.6266,13.5612},{1541.9974,-1660.6011,13.5536},{1519.7565,-1659.6326,13.5392},
    {
1539.8406,-1628.5510,13.3828},{1565.1134,-1622.2438,13.5469},{1530.7954,-1606.4110,14.1295},{1507.8767,-1599.4089,13.5815},
    {
1505.3864,-1610.7913,14.0469},{1488.3834,-1613.8599,14.0393},{1477.0513,-1634.9103,14.1484},{1462.3180,-1634.6604,14.0469},
    {
1437.2944,-1618.6605,13.5469},{1426.6414,-1644.0607,13.3594},{1441.7551,-1653.5764,13.7969},{1441.4268,-1672.5590,13.5469},
    {
1423.6233,-1682.8241,13.5469},{1418.0233,-1703.9054,13.5469},{1437.7156,-1721.5713,13.5469},{1432.3802,-1738.5764,13.5469},
    {
1463.1833,-1742.3220,13.5469},{1481.4375,-1732.1178,13.3828},{1481.2562,-1716.1274,14.0469},{1475.6593,-1696.3121,14.0469},
    {
1488.7361,-1679.1930,14.0469},{1484.9581,-1668.1946,14.5532},{1497.2861,-1657.9199,14.0469}
};
new 
Float:sfbeach[38][4] = 
{
    {-
2827.1113,133.7648,10.1454},{-2802.5173,150.3827,7.1797},{-2800.8657,119.0904,7.1797},{-2799.2205,91.8452,7.1797},
    {-
2808.6494,65.7056,7.0390},{-2787.6018,56.4122,7.1875},{-2781.1123,40.3444,7.0391},{-2764.5078,32.3351,7.0954},
    {-
2755.0298,47.6061,7.1875},{-2738.4634,40.0578,7.0391},{-2708.1689,42.5563,4.2969},{-2694.5247,80.9633,4.1797},
    {-
2695.5220,85.9400,4.1797},{-2710.1006,92.2549,4.1924},{-2696.8843,111.5605,4.3359},{-2686.9314,115.5568,7.1953},
    {-
2698.5088,132.8573,4.3359},{-2718.0486,128.8348,6.0606},{-2705.2048,133.4235,4.1797},{-2714.2708,147.2233,4.3359},
    {-
2720.2808,163.2620,4.9006},{-2733.4858,156.0247,6.4715},{-2747.3416,148.2155,7.1522},{-2756.5076,163.6874,7.1261},
    {-
2759.1709,129.2319,7.0028},{-2761.2437,95.2280,7.2041},{-2747.9644,85.1727,6.0373},{-2762.5933,63.1642,6.9295},
    {-
2796.0479,33.5549,7.1875},{-2841.2988,39.1871,10.2603},{-2847.9170,72.0562,11.2068},{-2851.2410,98.5900,11.9246},
    {-
2867.0737,107.0109,8.2280},{-2876.2185,79.9160,5.3630},{-2887.4248,56.7427,4.8063},{-2892.8118,79.9157,4.7256},
    {-
2888.9111,97.3138,4.5034},{-2835.8184,132.0043,12.9365}
};
new 
Float:fcarson[34][4] = 
{
    {-
139.1775,1215.4841,19.7422,141.7078},{-153.8760,1218.3271,19.7422,65.5671},{-171.4962,1222.3999,19.7422,83.7406},{-181.2467,1205.6768,19.7252,139.5145},
    {-
179.0073,1192.3746,19.7422,180.2482},{-150.7592,1183.7032,19.7422,234.1420},{-117.2028,1189.5302,19.5867,266.1022},{-108.4096,1154.8414,19.6735,208.7616},
    {-
111.1175,1142.3491,19.7422,167.4012},{-120.9180,1139.3656,20.6196,107.2406},{-138.8787,1133.5759,19.7500,171.4746},{-153.5029,1141.0680,20.4031,61.4935},
    {-
158.9153,1160.6289,19.7422,6.3463},{-145.2504,1161.2357,19.7500,272.0322},{-175.7993,1156.1487,19.7500,97.8172},{-181.9973,1138.0840,19.7422,160.7978},
    {-
183.1206,1168.9296,19.7422,345.9561},{-200.8287,1179.7640,19.7422,63.0368},{-208.9972,1205.2040,19.7422,22.3032},{-234.3392,1163.7423,19.7422,154.2177},
    {-
236.1476,1130.8083,19.7344,173.0179},{-247.7604,1107.7946,19.7422,124.4508},{-268.8921,1085.3771,19.7422,145.7576},{-282.4875,1114.8331,19.7422,24.1832},
    {-
261.9451,1068.9342,20.2494,189.6014},{-239.5581,1062.7266,19.7344,180.0000},{-201.8589,1037.6169,19.7422,257.2823},{-166.2479,1048.0520,19.6615,283.9158},
    {-
157.5035,1061.9319,19.8184,344.7030},{-151.0909,1070.1516,19.7500,295.5092},{-115.4670,1083.8669,19.7218,197.7482},{-98.3081,1086.8555,19.7422,260.4155},
    {-
64.1761,1086.5482,19.5854,256.6555},{-34.3524,1110.5773,20.1860,317.1294}
};
new 
Float:temple[36][4] =
{
    {
1209.1860,-946.5930,42.7253,273.6089},{1219.0128,-953.6887,42.8422,230.2465},{1216.7285,-927.8604,42.8821,9.0544},{1212.1711,-922.4661,42.9294,42.8947},
    {
1210.8511,-902.7797,42.9262,4.3543},{1188.8629,-921.6407,43.1386,103.0318},{1173.4011,-906.4033,43.3339,43.1846},{1160.7131,-913.9047,42.6719,125.5921},
    {
1140.0933,-927.9590,43.1797,122.4587},{1121.3844,-943.8162,42.6950,108.9853},{1110.1786,-973.1039,42.7656,171.9659},{1142.5044,-974.7628,42.7656,267.5336},
    {
1146.3579,-1000.5288,36.7207,185.7528},{1161.2222,-984.1971,39.4015,344.3011},{1185.4181,-991.8577,43.4843,263.1472},{1122.9681,-1004.1006,29.8632,89.8722},
    {
1097.6840,-1006.9481,34.5468,87.9921},{1071.7909,-992.9601,38.8383,69.8186},{1081.5629,-975.5244,41.3031,339.6012},{1082.7950,-1054.2004,31.0584,180.4264},
    {
1070.0968,-1069.9083,29.0174,168.2063},{1104.3099,-1079.2284,29.3323,264.0875},{1121.5052,-1083.6727,26.4084,251.2641},{1129.9788,-1042.4882,31.6995,322.3914},
    {
1142.9447,-1031.8563,31.9876,294.8178},{1173.0790,-1047.7653,31.7878,254.3975},{1195.3423,-1031.0123,31.9297,286.9844},{1217.5659,-1062.5029,29.4544,204.5766},
    {
1215.2301,-1065.1698,30.4375,112.8146},{1203.4875,-1079.2415,29.1240,142.2227},{1244.8640,-1048.5183,31.8939,285.7308},{1262.7087,-1015.5209,33.3528,345.5780},
    {
1271.4772,-995.1876,35.5784,323.0179},{1285.5336,-963.2109,34.5859,280.0909},{1289.2921,-982.1328,32.6953,239.3571},{1272.9884,-941.0987,42.3422,50.1253}
};
new 
Float:enorth[34][4] =
{
    {-
1667.0264,1310.1635,7.1875,191.9115},{-1678.5259,1320.0492,7.1875,25.2166},{-1664.0835,1339.3635,7.1855,314.7159},{-1671.0406,1367.5499,7.1722,332.5761},
    {-
1645.4203,1367.0571,7.1797,228.8617},{-1616.0942,1389.9009,7.1741,319.9755},{-1619.9160,1405.3523,7.1809,3.8866},{-1639.0302,1411.0756,7.1875,58.4071},
    {-
1645.8350,1405.0081,9.8047,125.7744},{-1668.7094,1398.0873,11.3906,90.0000},{-1681.4673,1400.3319,12.2031,82.4136},{-1659.9058,1383.9050,9.8047,223.7620},
    {-
1669.1945,1363.8678,9.8047,130.4745},{-1690.1013,1359.6693,9.7971,45.0594},{-1691.4535,1355.9893,7.1797,169.2772},{-1721.1653,1327.6372,7.0391,121.7012},
    {-
1740.8599,1291.9722,6.9178,137.6813},{-1741.5392,1271.1891,7.0814,180.6084},{-1738.0513,1243.2505,7.5469,185.3084},{-1729.5306,1245.5106,7.5469,287.1427},
    {-
1723.7137,1241.7795,17.9201,225.7287},{-1724.9263,1265.3325,17.9272,6.7301},{-1709.0659,1260.3344,17.9219,252.6756},{-1707.9510,1244.5370,17.9203,181.2349},
    {-
1696.3998,1238.5999,20.6923,269.7887},{-1681.6467,1232.6141,20.7016,248.6023},{-1648.0487,1231.2203,7.0391,267.7158},{-1657.5555,1213.3115,7.2500,137.1107},
    {-
1666.8551,1206.5538,13.6719,185.3412},{-1659.2870,1217.7537,13.6719,328.2225},{-1641.0428,1237.7196,7.1875,320.1320},{-1625.3763,1251.8796,7.1779,310.1052},
    {-
1635.4999,1267.2788,7.1814,34.0793},{-1617.8167,1278.6882,7.0469,292.2450}
};
new 
Float:fintersection[33][4] =
{
    {-
193.2766,-1438.5994,4.8479,226.7582},{-164.6540,-1440.0411,4.6740,271.5745}, {-153.9982,-1422.8977,3.0391,331.4218},{-129.5283,-1426.9924,3.7081,250.5810}, 
    {-
105.1287,-1406.6932,6.6307,297.2679},{-85.2188,-1436.7418,6.4607,205.7738}, {-80.7755,-1467.1910,6.2696,194.4936},{-88.6013,-1490.1915,2.5801,149.6865}, 
    {-
91.8154,-1519.3381,2.9395,176.9468},{-115.7950,-1536.2228,2.7379,119.6063}, {-141.0677,-1550.3240,4.2412,123.8725},{-127.1159,-1577.1346,7.0059,207.0271}, 
    {-
110.3815,-1571.4741,2.6172,291.0012},{-89.8260,-1585.2454,2.6172,208.9069}, {-63.3648,-1563.1489,2.6172,311.0546},{-56.2579,-1536.0868,2.3616,13.7219}, 
    {-
22.5712,-1522.7439,1.8203,281.9146},{-22.1054,-1500.8571,2.3004,358.0552}, {5.4259,-1466.8180,4.6178,330.7950},{-4.1911,-1425.2972,9.2527,28.1355}, 
    {-
34.8234,-1406.7279,11.5224,61.3491},{-36.6760,-1391.0349,11.2783,325.4682}, {-54.1573,-1386.6997,11.8554,103.3361},{-70.8423,-1379.9421,11.7691,67.9291}, 
    {-
106.4056,-1416.5011,12.5298,135.9231},{-113.9818,-1443.3822,12.8047,148.7699}, {-131.1322,-1474.9382,12.8047,141.2498},{-167.0684,-1479.5399,12.8211,100.8294}, 
    {-
179.8524,-1467.2821,8.1724,47.2489},{-81.8190,-1298.7784,5.6743,260.6073}, {-61.9966,-1312.6229,7.8631,223.6569},{-56.9057,-1341.8336,10.7082,184.4899}, 
    {-
55.2765,-1365.2666,11.4455,162.8697}
};
new 
Float:elquebrados[50][4] =
{
    {-
1546.8826,2600.7251,55.6875,88.9573},{-1535.3271,2598.7444,55.6888,271.4890},{-1538.5468,2610.5127,55.8359,16.4567},{-1552.8682,2627.8936,55.8359,33.6902}, 
    {-
1532.5859,2629.3809,55.8359,266.4755},{-1525.0286,2642.0735,55.8359,331.6495},{-1544.3547,2654.6653,55.6875,46.5369},{-1563.9609,2647.4653,55.8359,132.0777}, 
    {-
1578.6793,2662.8958,55.8468,29.3034},{-1592.0409,2685.3291,55.3430,24.6034},{-1595.1698,2696.7361,55.0749,12.3833},{-1581.2349,2708.9751,55.7378,168.0880}, 
    {-
1569.5688,2699.9912,55.8359,224.1752},{-1544.6544,2707.2300,55.8403,263.6555},{-1528.1859,2695.9468,55.8359,249.8687},{-1540.2407,2683.1140,55.8359,143.0210}, 
    {-
1502.1917,2694.0408,55.8359,293.7358},{-1504.7490,2658.8689,55.8359,157.1212},{-1490.4036,2650.5010,55.8359,234.5152},{-1473.7260,2653.4670,55.8359,276.8157}, 
    {-
1483.1969,2637.9238,58.7813,184.3815},{-1478.3207,2615.1011,58.7879,193.7815},{-1471.5847,2613.8113,58.7879,262.0889},{-1464.3140,2629.9814,58.7734,264.9089}, 
    {-
1459.8176,2618.4243,58.7734,183.7549},{-1448.8698,2617.2908,61.0269,272.7423},{-1465.5635,2620.9912,62.0625,97.6107},{-1482.4075,2618.6062,62.3357,83.8240}, 
    {-
1482.4064,2599.9165,55.6875,182.2841},{-1463.9857,2588.4446,55.8359,201.0117},{-1475.6803,2571.6592,55.8359,125.8111},{-1448.5939,2574.5735,55.8359,294.0727}, 
    {-
1431.0421,2571.7632,55.8359,274.9592},{-1443.3533,2551.1213,55.8359,123.9545},{-1466.7520,2549.2070,55.8359,89.8008},{-1497.1040,2536.3916,55.6875,112.0477}, 
    {-
1506.9033,2522.4158,55.6875,133.9812},{-1526.0604,2524.0713,55.7805,90.1141},{-1513.6055,2550.0461,55.6875,318.8263},{-1532.4633,2555.0105,55.6875,78.2074},
    {-
1522.4945,2571.0505,55.8359,281.5393},{-1506.1741,2577.7188,55.8359,280.5992},{-1493.0643,2576.9260,55.6882,261.1724},{-1437.1060,2677.6128,55.8359,249.5790},
    {-
1496.3018,2599.9167,55.6900,54.3938},{-1516.9894,2600.3450,55.6900,91.3675},{-1514.6716,2620.3916,55.8359,10.5267},{-1504.6250,2639.3267,55.8359,315.6929},
    {-
1462.0348,2663.2993,55.8359,273.7060},{-1449.5140,2678.6682,55.8359,321.9597}
};
new 
Float:vbeach[47][4] =
{
    {
859.1684,-1664.3528,13.5491,261.3813},{864.6097,-1665.6898,13.5469,260.1902}, {890.9573,-1669.1322,13.5469,262.0702},{915.3513,-1668.7639,13.3906,270.8436}, 
    {
937.5125,-1668.4376,13.5481,270.8436},{942.1040,-1644.3956,13.5459,350.4311},{959.7734,-1642.5000,13.5259,277.4237},{968.9007,-1657.0146,13.4833,209.4297}, 
    {
976.6086,-1675.4865,13.5234,194.3896},{958.9909,-1687.0883,13.5377,113.2355},{943.7371,-1693.6371,13.5420,113.2355},{924.4762,-1696.5859,13.5191,136.8347}, 
    {
929.6342,-1708.0759,13.5463,219.7698},{936.2728,-1723.5509,13.5469,199.0896},{940.3987,-1718.5659,13.9189,351.6844},{936.9946,-1736.5308,13.9601,181.2528}, 
    {
943.9308,-1744.2015,13.5546,264.2869},{920.2905,-1723.9945,13.3828,42.7815},{916.6095,-1739.6140,13.3821,168.7426},{892.9470,-1743.7722,13.5469,98.2420}, 
    {
858.6921,-1715.1775,13.5500,168.4292},{851.3013,-1724.7543,15.9105,149.3157},{855.1228,-1751.5760,13.5469,170.6224},{915.8384,-1683.5719,13.3906,268.3601}, 
    {
870.5774,-1756.0477,13.5469,266.5034},{856.6744,-1778.5537,13.9061,180.7218},{843.5093,-1802.9558,13.2206,149.3156},{888.9159,-1683.4384,13.5469,277.7603},
    {
841.6378,-1832.0582,12.2530,181.9025},{862.7359,-1828.8395,12.0737,282.4836},{885.4586,-1827.8005,11.9240,269.0099},{928.3049,-1827.6377,12.5909,266.8165}, 
    {
941.6665,-1813.5114,13.2420,333.5571},{963.3500,-1804.9547,14.2678,273.7098},{972.8170,-1791.9810,14.2645,324.4704},{882.7352,-1696.1946,13.5469,30.5614}, 
    {
968.3768,-1782.1276,14.1022,32.1510},{968.9041,-1773.4266,14.2747,354.8640},{970.4485,-1756.2532,13.6283,354.8640},{947.4354,-1757.5646,13.5469,94.1916}, 
    {
972.9360,-1734.0981,13.5469,355.8042},{966.8666,-1715.4131,13.5546,13.0377},{975.8031,-1697.1034,13.5307,341.3906},{974.7139,-1682.4485,13.5234,335.3647},
    {
884.3590,-1722.1984,12.9217,15.8346},{889.3813,-1707.2811,12.9141,343.5609},{882.7352,-1696.1946,13.5469,30.5614}
};
new 
Float:rgigante[37][4] =
{
    {
363.0094,-2032.6082,7.8301,168.6282},{394.6286,-2013.7926,7.8359,273.0588},{395.9408,-2047.2874,7.8359,176.5512},{407.0226,-2063.1685,7.8359,197.8582},
    {
401.3735,-2083.2046,7.8301,147.0977},{379.1086,-2080.4937,7.8359,63.9432},{353.9558,-2085.1943,7.8359,102.0499},{352.5984,-2054.9502,7.8359,354.5030},
    {
362.8466,-2047.8715,7.8359,291.5224},{383.9634,-2053.4604,7.8359,232.9286},{364.1269,-2017.1599,7.8359,39.3101},{378.0180,-1983.4639,7.8359,337.8962},
    {
370.7059,-1963.6381,7.6719,22.0766},{362.9146,-1961.2715,7.8359,79.4172},{364.1119,-1934.2963,7.8359,356.3831},{386.6486,-1930.5859,7.8359,270.2156},
    {
397.3904,-1918.5433,7.8359,356.6965},{383.7765,-1898.8043,7.8359,20.8234},{394.6941,-1884.8938,10.6797,327.8697},{404.6210,-1875.9606,7.8359,310.9495},
    {
406.9637,-1854.1563,7.8359,357.9499},{396.6850,-1840.7916,7.8359,77.8507},{380.6784,-1831.5135,7.8359,50.9038},{365.1059,-1831.5942,7.8359,97.9042},
    {
363.8816,-1864.7482,7.8359,179.6849},{369.8121,-1869.4805,7.6719,229.8187},{392.4372,-1873.0396,12.7664,351.3929},{394.7975,-1857.4451,13.6016,351.3929},
    {
391.5834,-1846.8441,16.0397,15.2065},{389.7334,-1834.9193,17.2500,41.7197},{402.3297,-1833.8309,17.2389,269.9164},{403.8464,-1811.0168,17.2354,342.6194},
    {
397.5360,-1818.8136,14.7275,190.9881},{393.6596,-1899.5045,12.5313,174.6946},{393.7402,-1911.4252,12.3047,180.6480},{392.2530,-1925.0149,10.2500,159.0278},
    {
384.0814,-1923.6614,10.6297,69.7269}
};
new 
Float:a51[40][4] =
{
    {
111.3132,1926.9701,18.7126,293.2250},{130.4334,1930.4910,19.2261,276.7551},{123.2636,1897.5400,18.4892,168.6540},{135.9129,1888.1447,18.2300,252.9415},
    {
147.7952,1870.4104,17.8359,193.0942},{131.7152,1862.7648,17.7941,112.5668},{107.9860,1874.2311,17.8698,22.3259},{107.4798,1859.7385,17.7326,179.6208},
    {
114.7304,1830.3463,17.6406,201.5543},{130.2913,1822.7539,17.6406,245.4214},{115.1746,1814.5122,25.4985,129.7768},{135.1512,1812.2031,17.6406,273.9116},
    {
150.9003,1823.5039,17.6406,304.3052},{164.5705,1838.1246,17.6406,329.0588},{178.9191,1845.3876,17.6406,275.1648},{178.8477,1845.3815,17.6406,275.1648},
    {
184.7349,1863.4567,20.6483,338.4587},{215.8190,1859.1687,20.6406,256.3645},{220.7578,1879.3613,17.6406,351.6188},{213.6725,1889.9646,15.1783,60.7191},
    {
217.4117,1899.9939,17.3586,315.2716},{249.4554,1902.2744,20.6332,289.2646},{241.5231,1929.5970,17.6481,28.5923},{275.2142,1896.7220,17.6406,223.1742},
    {
280.7543,1871.0903,17.6481,152.7461},{279.1577,1849.0514,17.6406,176.8005},{275.3407,1823.2036,17.6406,205.5070},{263.2333,1813.8177,17.6406,126.6667},
    {
241.9748,1819.4819,17.6406,78.7263},{216.9389,1804.9755,17.6406,121.3400},{211.5366,1812.2205,21.8594,301.1717},{210.5597,1821.9075,17.6406,47.3927},
    {
209.3573,1839.2510,17.6406,1.9590},{197.3416,1887.3124,17.6481,27.6525},{187.7405,1915.7501,17.6883,21.6991},{162.9067,1906.3148,18.6345,113.8200},
    {
151.6507,1889.9271,18.3277,126.9801},{139.4483,1890.4786,18.3352,85.9330},{128.6807,1877.9468,17.8359,165.5204},{127.1232,1878.3368,17.8359,0.0789}
};
new 
Float:regtom[30][4] =
{
    {-
290.9531,1781.4796,42.8490,270.7722},{-296.3724,1771.0554,42.6875,170.6993},{-309.6805,1768.1202,43.6406,88.6052},{-319.0094,1781.7910,43.6406,27.1913}, 
    {-
338.1666,1770.7394,42.7401,116.4922},{-348.1019,1740.1899,42.6875,164.4326},{-383.8301,1739.8047,42.3127,86.0985},{-402.8462,1720.5228,40.8879,135.9190},
    {-
402.5501,1757.3334,43.2502,358.6778},{-397.4855,1783.3752,46.8776,22.8047},{-380.9569,1796.9498,48.1947,310.4240},{-399.2364,1811.7345,55.1447,53.1983}, 
    {-
419.1346,1817.6521,68.1852,103.3321},{-434.4184,1832.0725,66.4266,47.2449},{-421.8239,1855.8717,64.5230,333.2975},{-430.2300,1884.8320,60.7934,20.9246}, 
    {-
411.7616,1902.8848,58.1685,300.0837},{-385.4527,1901.4888,57.5019,264.9900},{-378.8561,1873.7175,54.0399,192.9226},{-383.2080,1848.9977,52.2710,172.2424}, 
    {-
386.0093,1822.7356,50.3602,166.6023},{-372.3949,1798.8380,48.4254,211.7227},{-346.4851,1834.9474,42.2891,333.9241},{-347.1021,1855.7087,42.6408,1.4977}, 
    {-
329.9305,1871.0237,43.2494,285.9836},{-308.2547,1860.8265,42.2891,266.2433},{-305.4679,1835.5764,42.3849,183.2092},{-314.2389,1815.6096,43.0490,146.8622}, 
    {-
305.2186,1803.5743,42.7841,228.6430},{-302.3276,1779.3213,42.6875,156.8890}
};
new 
Float:gpalms[32][4] =
{
    {
113.8429,1476.8076,10.6296,358.7804},{124.5529,1448.2830,10.6165,231.0667},{125.2640,1412.9417,10.5992,204.1197},{152.9542,1381.0825,10.5859,9.2480},
    {
118.4201,1377.0560,10.5925,175.9194},{127.1336,1373.4841,10.5925,253.9401},{127.3904,1342.6458,10.5859,226.3665},{148.9440,1356.2150,10.5859,331.0209},
    {
152.2197,1410.4191,10.5859,0.4746},{161.4334,1444.6166,10.5912,323.5009},{178.8360,1471.1622,10.5859,331.9612},{208.0970,1472.3293,10.5859,271.8005},
    {
209.3295,1452.2944,10.5859,169.3396},{205.1796,1427.8201,10.5859,179.9930},{189.8477,1402.6680,10.5859,150.5394},{188.2554,1381.2209,10.5859,194.0931},
    {
196.0919,1362.7227,10.5859,184.3797},{182.3101,1364.3268,10.5859,116.4326},{216.6036,1347.0695,10.5859,231.4270},{235.4591,1355.5232,10.5859,305.3745},
    {
237.2658,1371.1334,10.5859,335.7682},{260.6676,1370.7881,10.5859,267.4607},{271.7744,1365.0239,10.5859,89.8224},{280.7831,1383.7662,10.5859,79.4822},
    {
292.3084,1411.9254,10.1510,93.5823},{275.5483,1440.3691,10.5859,27.4684},{266.5626,1475.8262,10.5859,27.1549},{235.0418,1477.5206,10.5859,90.7621},
    {
222.0934,1459.2247,10.5859,144.0293},{235.5821,1436.9362,10.5859,212.3366},{221.0505,1420.6674,10.5859,180.3762},{248.5634,1398.1390,10.5859,242.1035}
};
// Random MSG's
new motiva[11][50] = 
{
    {
"comeu o cu de"},
    {
"ceifou a alma de"},
    {
"arombou o cu de"},
    {
"estrupou"},
    {
"roubou a  vida de"},
    {
"esmagou"},
    {
"fudeu com a vida de"},
    {
"mostrou o inferno para"},
    {
"estourou a cabeзa de"},
    {
"sugou o sangue de"},
    {
"pulverizou"}
};
new 
******msgs[6][80] =
{
    {
"Vocк pode ver seu kd perguntando 'meu kd?' 'qual o meu kd?' para mim."},
    {
"Faзa-me uma pergunta! Use /perguntar :D"},
    {
"Vocк quis dizer: Hard DM owna?"},
    {
"Zoe seus amigos, faзa-me perguntas comprometedoras /perguntar"},
    {
"Reporte um bug com /bug!"},
    {
"Envia sua sugestгo para o servidor! /sugestao"}
};
// Outros
main()
{
    print(
"\n----------------------------------");
    print(
"         HARD DM BY ARAKUTA");
    print(
"----------------------------------\n");
}
forward Cont(p1,p2,pos);
forward ChangeArea();
forward Iniciar();
forward relogio();
forward ******IT();
forward Liberty******();
forward ContarVotos();
forward LiberarVote();
forward TV(playerid,id);
// Timer Callbacks
public TV(playerid,id)
{
    
TogglePlayerSpectating(playerid,1);
    
PlayerSpectatePlayer(playerid,id);
    
SetPlayerInterior(playerid,GetPlayerInterior(id));
    
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
    return 
1;
}
public 
LiberarVote()
{
    
liberarvotes true;
    return 
1;
}
    
public 
ContarVotos()
{
    
TextDrawHideForAll(votacao);
    
votestart false;
    if(
votesim votenao)
    {
        
votesim 0;
        
votenao 0;
        
SendClientMessageToAll(verde,"A Votaзгo passou!");
        
KillTimer(tbase);
        
KillTimer(inicio);
        
tbase SetTimer("ChangeArea",900000,true);
        
ChangeArea();
    }
    else
    {
        
votesim 0;
        
votenao 0;
        
SendClientMessageToAll(verde,"A Votaзгo nгo passou!");
        
blockvote true;
    }
    return 
1;
}
public 
Liberty******()
{
    
ready 0;
    return 
1;
}
public 
******IT()
{
    new 
number random(sizeof ******msgs);
    new 
namb[55+80];
    
format(namb,sizeof namb,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}%s",******msgs[number]);
    
SendClientMessageToAll(branco,namb);
    return 
1;
}
public 
relogio()
{
    new 
hour,minute,clocke[13];
    
gettime(hour,minute);
    
format(clocke,sizeof clocke,"~p~%02d:%02d",hour,minute);
    
TextDrawSetString(clock,clocke);
    
SetWorldTime(hour);
    return 
1;
}    
public 
Iniciar()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            
TogglePlayerControllable(i,1);
            if(
afk[i] == falseSpawnPlayer(i);
            
votou[i] = false;
        }
    }
    return 
1;
}
public 
ChangeArea()
{
    
KillTimer(liberarvote);
    
liberarvote SetTimer("LiberarVote",300000,false);
    
blockvote false;
    switch(
area)
    {
        case 
1:
        {
            
area 2;
            
TextDrawSetString(TLocal,"Bayside");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Bayside.");
            
SendRconCommand("mapname Bayside");
        }
        case 
2:
        {
            
area 3;
            
TextDrawSetString(TLocal,"Pershing Square");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Pershing Square.");
            
SendRconCommand("mapname Pershing Square");
        }            
        case 
3:
        {
            
area 4;
            
TextDrawSetString(TLocal,"San Fierro Beach");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}San Fierro Beach.");
            
SendRconCommand("mapname San Fierro Beach");
        }
        case 
4:
        {
            
TextDrawSetString(TLocal,"Fort Carson");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Fort Carson.");
            
SendRconCommand("mapname Fort Carson");
            
area 5;
        }
        case 
5:
        {
            
TextDrawSetString(TLocal,"Temple");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Temple.");
            
SendRconCommand("mapname Temple");
            
area 6;
        }
        case 
6:
        {
            
TextDrawSetString(TLocal,"Esplanade North");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Esplanade North.");
            
SendRconCommand("mapname Esplanade North");
            
area 7;
        }
        case 
7:
        {
            
TextDrawSetString(TLocal,"Flint Intersection");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Flint Intersection.");
            
SendRconCommand("mapname Flint Intersection");
            
area 8;
        }
        case 
8:
        {
            
TextDrawSetString(TLocal,"El Quebrados");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}El Quebrados.");
            
SendRconCommand("mapname El Quebrados");
            
area 9;
        }
        case 
9:
        {
            
TextDrawSetString(TLocal,"Verona Beach");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Verona Beach.");
            
SendRconCommand("mapname Verona Beach");
            
area 10;
        }
        case 
10:
        {
            
TextDrawSetString(TLocal,"Roda Gigante");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Roda Gigante.");
            
SendRconCommand("mapname Roda Gigante");
            
area 11;
        }
        case 
11:
        {
            
TextDrawSetString(TLocal,"Area 51");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Area 51.");
            
SendRconCommand("mapname Area 51");
            
area 12;
        }
        case 
12:
        {
            
TextDrawSetString(TLocal,"Regular Tom");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Regular Tom.");
            
SendRconCommand("mapname Regular Tom");
            
area 13;
        }
        case 
13:
        {
            
TextDrawSetString(TLocal,"Green Palms");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Green Palms.");
            
SendRconCommand("mapname Green Palms");
            
area 14;
        }
        case 
14:
        {
            
TextDrawSetString(TLocal,"Blueberry Acres");
            
SendClientMessageToAll(laranja,"Fim do Round! Prуximo local: {FFFFFF}Blueberry Acres.");
            
SendRconCommand("mapname Blueberry Acres");
            
area 1;
        }
    }
    for(new 
iMAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Duel[i] == 998)
            {
                
TogglePlayerControllable(i,0);
                
GameTextForPlayer(i,"~r~>~y~Fim do Round~r~<",4000,6);
            }
        }
    }
    
inicio SetTimer("Iniciar",3000,false);
    return 
1;
}
public 
Cont(p1,p2,pos)
{
    switch(
pos)
    {
        case 
2:
        {
            
GameTextForPlayer(p1,"2",1000,6);
            
GameTextForPlayer(p2,"2",1000,6);
            
PlayerPlaySound(p2,1056,0,0,0);
            
PlayerPlaySound(p1,1056,0,0,0);
            
SetTimerEx("Cont",1000,false,"ddd",p1,p2,1);
            
SetCameraBehindPlayer(p1);
            
SetCameraBehindPlayer(p2);
        }
        case 
1:
        {
            
GameTextForPlayer(p1,"1",1000,6);
            
GameTextForPlayer(p2,"1",1000,6);
            
PlayerPlaySound(p2,1056,0,0,0);
            
PlayerPlaySound(p1,1056,0,0,0);
            
SetTimerEx("Cont",1000,false,"ddd",p1,p2,0);
        }
        case 
0:
        {
            
GameTextForPlayer(p1,"GO",1000,6);
            
GameTextForPlayer(p2,"GO",1000,6);
            
PlayerPlaySound(p2,1057,0,0,0);
            
PlayerPlaySound(p1,1057,0,0,0);
            
TogglePlayerControllable(p1,1);
            
TogglePlayerControllable(p2,1);
            
SetPlayerHealth(p1,100.0);
            
SetPlayerArmour(p2,100.0);
            
SetPlayerArmour(p1,100.0);
            
SetPlayerHealth(p2,100.0);
        }
    }
    return 
1;
}
// Callbacks
public OnGameModeInit()
{
    
des false;
    print(
"Carregando o HARD DM");
    
DisableInteriorEnterExits();
    new 
porta GetServerVarAsInt("port");
    new 
serverip[32];
    
format(serverip,sizeof serverip,"~b~%s:%d",ipservidor,porta);
    
UsePlayerPedAnims();
    
SetGameModeText(modetext);
    
SendRconCommand(hostnametext);
    
    
hard TextDrawCreate(477.0000005.000000,serverip);
    
TextDrawBackgroundColor(hard255);
    
TextDrawFont(hard2);
    
TextDrawLetterSize(hard0.2500001.300000);
    
TextDrawColor(hard, -1);
    
TextDrawSetOutline(hard0);
    
TextDrawSetProportional(hard1);
    
TextDrawSetShadow(hard1);
    
    
TVersion TextDrawCreate(31.000000437.000000"v1.2~b~c /versao");
    
TextDrawAlignment(TVersion3);
    
TextDrawBackgroundColor(TVersion255);
    
TextDrawFont(TVersion2);
    
TextDrawLetterSize(TVersion0.2899991.100000);
    
TextDrawColor(TVersion, -1);
    
TextDrawSetOutline(TVersion0);
    
TextDrawSetProportional(TVersion1);
    
TextDrawSetShadow(TVersion1);
    
TLocal TextDrawCreate(560.000000420.000000"~b~Mapa ???");
    
TextDrawAlignment(TLocal2);
    
TextDrawBackgroundColor(TLocal255);
    
TextDrawFont(TLocal3);
    
TextDrawLetterSize(TLocal0.5000001.000000);
    
TextDrawColor(TLocal, -1929762616);
    
TextDrawSetOutline(TLocal1);
    
TextDrawSetProportional(TLocal1);
    
    
Textdraw0 TextDrawCreate(639.000000437.000000"~g~Hard ~r~DM");
    
TextDrawAlignment(Textdraw03);
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw02);
    
TextDrawLetterSize(Textdraw00.2899991.100000);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw01);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw0170);
    
TextDrawTextSize(Textdraw0518.000000, -30.000000);
    
    
clock TextDrawCreate(551.00000026.000000"~y~??:??");
    
TextDrawBackgroundColor(clock255);
    
TextDrawFont(clock3);
    
TextDrawLetterSize(clock0.5000001.600000);
    
TextDrawColor(clock, -1);
    
TextDrawSetOutline(clock0);
    
TextDrawSetProportional(clock1);
    
TextDrawSetShadow(clock1);
    
    new 
rcnumber[22];
    
format(rcnumber,22,"~r~RC:~w~%s",raidcall);
    
Textdraw4 TextDrawCreate(80.000000,425.000000,rcnumber);
    
TextDrawAlignment(Textdraw43);
    
TextDrawBackgroundColor(Textdraw4255);
    
TextDrawFont(Textdraw42);
    
TextDrawLetterSize(Textdraw40.2899991.100000);
    
TextDrawColor(Textdraw4, -1);
    
TextDrawSetOutline(Textdraw40);
    
TextDrawSetProportional(Textdraw41);
    
TextDrawSetShadow(Textdraw41);
    
    
votacao TextDrawCreate(20.000000142.000000"~g~Sim: ~w~x ~r~Nao: ~w~x");
    
TextDrawBackgroundColor(votacao255);
    
TextDrawFont(votacao3);
    
TextDrawLetterSize(votacao0.3799991.300000);
    
TextDrawColor(votacao, -1);
    
TextDrawSetOutline(votacao0);
    
TextDrawSetProportional(votacao1);
    
TextDrawSetShadow(votacao1);
    print(
"Text Draws carregadas.");
    for(new 
skinskin 300; ++skin)
    {
        
AddPlayerClass(skin,0,0,0,0,0,0,0,0,0,0);
    }
    print(
"Classe carregadas. Iniciando GM...");
    
area random(8) + 1;
    
ChangeArea();
    
relogio();
    
SetTimer("relogio",60000,true);
    
tbase SetTimer("ChangeArea",900000,true);
    
SetTimer("******IT",300000,true);
    
FreeArmour true;
    
blockvote false;
    
votestart false;
    return 
1;
}
public 
OnGameModeExit()
{
    
DOF2_Exit();
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    new 
rand random(34);
    switch(
rand)
    {
        case 
0SetPlayerColor(playerid,0x1B50E0FF);
        case 
1SetPlayerColor(playerid,0x5F0EB5FF);
        case 
2SetPlayerColor(playerid,0xA56AE6FF);
        case 
3SetPlayerColor(playerid,0xDF6AE6FF);
        case 
4SetPlayerColor(playerid,0xAE2AB5FF);
        case 
5SetPlayerColor(playerid,0xF305FFFF);
        case 
6SetPlayerColor(playerid,0xF70067FF);
        case 
7SetPlayerColor(playerid,0x0000F7FF);
        case 
8SetPlayerColor(playerid,0xF5F5DCFF);
        case 
9SetPlayerColor(playerid,0xFFE4C4FF);
        case 
10SetPlayerColor(playerid,0xFFEBCDFF);
        case 
11SetPlayerColor(playerid,0x0000FFFF);
        case 
12SetPlayerColor(playerid,0x8A2BE2FF);
        case 
13SetPlayerColor(playerid,0xA52A2AFF);
        case 
14SetPlayerColor(playerid,0xDEB887FF);
        case 
15SetPlayerColor(playerid,0xF0F0F0FF);
        case 
16SetPlayerColor(playerid,0xFFFFFFFF);
        case 
17SetPlayerColor(playerid,0xA0A0A0FF);
        case 
18SetPlayerColor(playerid,0x5F9EA0FF);
        case 
19SetPlayerColor(playerid,0x7FFF00FF);
        case 
20SetPlayerColor(playerid,0x9EF7F3FF);
        case 
21SetPlayerColor(playerid,0xF0F0F0FF);
        case 
22SetPlayerColor(playerid,0xE3E3E3FF);
        case 
23SetPlayerColor(playerid,0x54AAE3FF);
        case 
24SetPlayerColor(playerid,0x6495EDFF);
        case 
25SetPlayerColor(playerid,0x808080FF);
        case 
26SetPlayerColor(playerid,0xFFFFF0FF);
        case 
27SetPlayerColor(playerid,0x00FF00FF);
        case 
28SetPlayerColor(playerid,0xFFFFE0FF);
        case 
29SetPlayerColor(playerid,0xFF00FFFF);
        case 
30SetPlayerColor(playerid,0x9EF7A4FF);
        case 
31SetPlayerColor(playerid,0xDA70D6FF);
        case 
32SetPlayerColor(playerid,0xFF4500FF);
        case 
33SetPlayerColor(playerid,0x40E0D0FF);
    }        
    new 
arquivo[36];
    
format(arquivo,sizeof arquivo,"/acc/%s.ini",GetName(playerid));
    if(
DOF2_FileExists(arquivo))
    {
        new 
welcome[128];
        
format(welcome,128,"{22FF22}Seja bem vindo {FFFFFF}%s! {22FF22}Digite sua senha para logar!",GetName(playerid));
        
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja Bem Vindo!",welcome,"Logar","Sair");
    }
    else
    {
        new 
welcome[128];
        
format(welcome,128,"{22FF22}Seja bem vindo {FFFFFF}%s! {22FF22}Vocк й novo aqui!\nInsira uma senha para registrar sua conta!",GetName(playerid));
        
ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_PASSWORD,"Seja Bem Vindo!",welcome,"Logar","Sair");
    }
    
    
hudtext[playerid] = CreatePlayerTextDraw(playerid,36.000000,435.500000,"~g~Matou: ~w~??? ~g~Morreu: ~w~??? ~g~Wins: ~w~??? ~g~Losses: ~w~??? ~g~Score: ~w~??? ~g~Spree: ~w~??? ~b~Hard Master");
    
PlayerTextDrawBackgroundColor(playerid,hudtext[playerid],255);
    
PlayerTextDrawFont(playerid,hudtext[playerid],2);
    
PlayerTextDrawLetterSize(playerid,hudtext[playerid],0.209999,1.350000);
    
PlayerTextDrawColor(playerid,hudtext[playerid],-1);
    
PlayerTextDrawSetOutline(playerid,hudtext[playerid],0);
    
PlayerTextDrawSetProportional(playerid,hudtext[playerid],1);
    
PlayerTextDrawSetShadow(playerid,hudtext[playerid],1);
    
    
combate[playerid] = CreatePlayerTextDraw(playerid,148.000000,376.000000,"NULL");
    
PlayerTextDrawBackgroundColor(playerid,combate[playerid], 255);
    
PlayerTextDrawFont(playerid,combate[playerid], 3);
    
PlayerTextDrawLetterSize(playerid,combate[playerid], 0.6000003.000000);
    
PlayerTextDrawColor(playerid,combate[playerid], -1);
    
PlayerTextDrawSetOutline(playerid,combate[playerid], 1);
    
PlayerTextDrawSetProportional(playerid,combate[playerid], 1);
    
    
SendClientMessage(playerid,verde,"Seja bem vindo! HARD DM Tiro na {FFFFFF}Skin");
    
SendClientMessage(playerid,verde,"Vocк poder ver detalhes da versгo atual digitando {FFFFFF}/versao");
    
TextDrawShowForPlayer(playerid,hard);
    
TextDrawShowForPlayer(playerid,TVersion);
    
TextDrawShowForPlayer(playerid,TLocal);
    
TextDrawShowForPlayer(playerid,Textdraw0);
    
TextDrawShowForPlayer(playerid,clock);
    
    for(new 
iMAX_PLAYERSi++)
    {
        
cMatou[playerid][i] = 0;
    }
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    new 
welcome[100];
    switch(
reason)
    {
        case 
2format(welcome,sizeof welcome,"{FFFFFF}%s {00FFFF}saiu do servidor! {FFFFFF}[Kick/Ban]",GetName(playerid),playerid);
        case 
0format(welcome,sizeof welcome,"{FFFFFF}%s {00FFFF}saiu do servidor! {FFFFFF}[Conexao/Crash]",GetName(playerid),playerid);
        case 
1format(welcome,sizeof welcome,"{FFFFFF}%s {00FFFF}saiu do servidor! {FFFFFF}[Conta Propria]",GetName(playerid),playerid);
    }
    
SendClientMessageToAll(ciano,welcome);
    if(
Logado[playerid] == trueSalvarConta(playerid);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    
PlayerTextDrawHide(playerid,combate[playerid]);
    
Morto[playerid] = false;
    
SetPlayerVirtualWorld(playerid,0);
    
SetPlayerInterior(playerid,0);
    
Duel[playerid] = 998;
    
Lagduel[playerid] = false;
    
SendClientMessage(playerid,verde,"Vocк pode trocar sua cor e skin com {FFFFFF}/skin e /cor!");
    
SetPlayerArmour(playerid,100);
    
SetPlayerTeam(playerid,1);
    
SetPlayerRandomPos(playerid);
    
SetPlayerWantedLevel(playerid,0);
    
GivePlayerWeapon(playerid,24,250);
    
GivePlayerWeapon(playerid,25,100);
    
GivePlayerWeapon(playerid,34,50);
    
GivePlayerWeapon(playerid,4,1);
    
PlayerTextDrawShow(playerid,hudtext[playerid]);
    
TextDrawShowForPlayer(playerid,Textdraw4);
    
SetPlayerSkin(playerid,skine[playerid]);
    
spree[playerid] = 0;
    switch(
area)
    {
        case 
1PlayerPlaySound(playerid,2013,0,0,0);
        case 
2PlayerPlaySound(playerid,2006,0,0,0);
        case 
3PlayerPlaySound(playerid,2086,0,0,0);
        case 
4PlayerPlaySound(playerid,2128,0,0,0);
        case 
5PlayerPlaySound(playerid,2048,0,0,0);
        case 
6PlayerPlaySound(playerid,2138,0,0,0);
        case 
7PlayerPlaySound(playerid,2038,0,0,0);
        case 
8PlayerPlaySound(playerid,2045,0,0,0);
        case 
9PlayerPlaySound(playerid,2036,0,0,0);
        case 
10PlayerPlaySound(playerid,2157,0,0,0);
        case 
11PlayerPlaySound(playerid,2131,0,0,0);
        case 
12PlayerPlaySound(playerid,2078,0,0,0);
    }
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnPlayerRequestClass(playerid,classid)
{
    
SetPlayerPos(playerid,251.0581,-63.1020,11.7210);
    
SetPlayerFacingAngle(playerid,356.9788);
    
SetPlayerCameraPos(playerid,251.0978,-60.9160,14.7210);
    
SetPlayerCameraLookAt(playerid,251.0581,-63.1020,11.7210);
    new 
a[20];
    
format(a,20,"~r~Skin: ~w~%d",classid);
    
GameTextForPlayer(playerid,a,3000,6);
    
skine[playerid] = classid;
    return 
1;
}
public 
OnPlayerTakeDamage(playerid,issuerid,Float:amount,weaponid)
{
    if(
Lagduel[playerid] == false) return 1;
    if(
weaponid == 24amount 32;
    
SetPlayerScore(issuerid,GetPlayerScore(issuerid) + floatround(amount) / 10);
    
PlayerPlaySound(playerid,6401,0,0,0);
    new 
Float:life;
    
GetPlayerHealth(playerid,life);
    if((
life amount) <= 0)
    {
        
Morto[playerid] = true;
        
SendDeathMessage(issuerid,playerid,weaponid);
        
DeadPlayer(playerid,issuerid,weaponid);
    }
    return 
1;
}
    
public 
OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponid)
{
    if(
Aj[playerid] == false && GetPlayerSpecialAction(playerid) == 2) return SetPlayerHealth(playerid,0);
    switch(
weaponid)
    {
        case 
24amount 32;
        case 
9amount 10;
        case 
38amount 0;
    }
    if(
Morto[damagedid] == true) return 1;
    if(
Lagduel[damagedid] == true) return 1;
    
PlayerPlaySound(damagedid,6401,0,0,0);
    new 
Float:LifeFloat:ColeeteFloat:Dano;
    
GetPlayerArmour(damagedid,Coleete);
    
GetPlayerHealth(damagedid,Life);
    if(
Coleete 0)
    {
        if(
amount Coleete)
        {
            
Dano amount Coleete;
            
Life Life Dano;
            
SetPlayerArmour(damagedid0.0);
            
SetPlayerHealth(damagedidLife);
            
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
            return 
1;
        }
        
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
        
Coleete Coleete amount;
        
SetPlayerArmour(damagedidColeete);
    }
    if(
Coleete 1)
    {
        
Life Life amount;
        
SetPlayerScore(playerid,GetPlayerScore(playerid) + floatround(amount) / 10);
        
SetPlayerHealth(damagedidLife);
        if(
Life <= 0)
        {
            
Morto[damagedid] = true;
            
SendDeathMessage(playerid,damagedid,weaponid);
            
DeadPlayer(damagedid,playerid,weaponid);
        }
    }
    return 
1;
}
public 
OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
    switch(
dialogid)
    {
        case 
DIALOG_HUD:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0HudColor[playerid] = 0;
                    case 
1HudColor[playerid] = 1;
                    case 
2HudColor[playerid] = 2;
                    case 
3HudColor[playerid] = 3;
                    case 
4HudColor[playerid] = 4;
                    case 
5HudColor[playerid] = 5;
                }
                
Atualizar(playerid,HudColor[playerid]);
            }
        }
        case 
147:
        {
            if(
response)
            {
                switch(
listitem)
                {
                    case 
0SetPlayerColor(playerid,vermelho);
                    case 
1SetPlayerColor(playerid,verde);
                    case 
2SetPlayerColor(playerid,azul);
                    case 
3SetPlayerColor(playerid,amarelo);
                    case 
4SetPlayerColor(playerid,rosa);
                    case 
5SetPlayerColor(playerid,laranja);                
                    case 
6SetPlayerColor(playerid,marrom);
                    case 
7SetPlayerColor(playerid,preto);
                    case 
8SetPlayerColor(playerid,cinza);
                    case 
9SetPlayerColor(playerid,branco);
                    case 
10SetPlayerColor(playerid,ciano);
                }
            }
        }
        case 
655:
        {
            if(
response)
            {
                if(!
strlen(inputtext))
                {
                    
ShowPlayerDialog(playerid,655,DIALOG_STYLE_INPUT,"{00FFAA}Reportar um bug","Faзa uma breve descriзгo do problema.\nExemplo:{00CC00}Jogador quando morre nгo renasce!","Reportar","Sair");
                }
                else
                {
                    new 
arq[20];
                    
format(arq,sizeof(arq),"reportnumber.ini");
                    
DOF2_SetInt(arq,"Numero",DOF2_GetInt(arq,"Numero") + 1);
                    new 
novoarq[64];
                    
format(novoarq,sizeof(novoarq),"report%d.ini",DOF2_GetInt(arq,"Numero"));
                    
DOF2_CreateFile(novoarq,"a");
                    
DOF2_SetString(novoarq,"Conteudo",inputtext);
                    
DOF2_SetString(novoarq,"Remetente",GetName(playerid));
                    new 
string[128];
                    
format(string,sizeof(string),"Obrigado pelo seu report, o HardAd agradece!",DOF2_GetInt(arq,"Numero"));
                    
SendClientMessage(playerid,amarelo,string);
                }
            }
        }
        case 
656:
        {
            if(
response)
            {
                if(!
strlen(inputtext))
                {
                    
ShowPlayerDialog(playerid,656,DIALOG_STYLE_INPUT,"{00FFAA}Enviar uma sugestгo","Faзa uma breve explicaзгo da sugestгo.\nExemplo:{00CC00}Nascer com M4.","Enviar","Sair");
                }
                else
                {
                    new 
arq[20];
                    
format(arq,sizeof(arq),"reportnumber.ini");
                    
DOF2_SetInt(arq,"Numero",DOF2_GetInt(arq,"Numero") + 1);
                    new 
novoarq[64];
                    
format(novoarq,sizeof(novoarq),"sugestao%d.ini",DOF2_GetInt(arq,"Numero"));
                    
DOF2_CreateFile(novoarq,"a");
                    
DOF2_SetString(novoarq,"Conteudo",inputtext);
                    
DOF2_SetString(novoarq,"Remetente",GetName(playerid));
                    new 
string[128];
                    
format(string,sizeof(string),"Obrigado pela sua sugestao, o Hard DM agradece!",DOF2_GetInt(arq,"Numero"));
                    
SendClientMessage(playerid,amarelo,string);
                }
            }
        }
        case 
DIALOG_REGISTER:
        {
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Seja Bem Vindo!","Vocк precisa digitar uma senha!","Registrar","Sair");
                
CriarConta(playerid,inputtext);
            }
            else
            {
                
SendClientMessage(playerid,branco,"Ok, entendemos a sua decisгo! Volte quando quiser!");
                
Kick(playerid);
            }
        }
        case 
DIALOG_LOGIN:
        {
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja Bem Vindo!","{FF2222}Vocк precisa digitar uma senha!","Logar","Sair");
                
CarregarConta(playerid,inputtext);
            }
            else
            {
                
SendClientMessage(playerid,branco,"Ok, entendemos a sua decisгo! Volte quando quiser!");
                
Kick(playerid);
            }
        }
    }
    return 
1;
}
public 
OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(
votestart == false) return 1;
    if(
newkeys KEY_YES && votestart == true && votou[playerid] == false)
    {
        
votou[playerid] = true;
        
votesim ++;
        
SendClientMessage(playerid,verde,"Vocк votou em Sim! Aguarde o tйrmino da votaзгo.");
        new 
result[50];
        
format(result,sizeof result,"~g~Sim: %d ~r~Nao: %d",votesim,votenao);
        
TextDrawSetString(votacao,result);
    }
    else if(
newkeys KEY_NO && votestart == true && votou[playerid] == false)
    {
        
votou[playerid] = true;
        
votenao ++;
        
SendClientMessage(playerid,verde,"Vocк votou em Nao! Aguarde o tйrmino da votaзгo.");
        new 
result[50];
        
format(result,sizeof result,"~g~Sim: %d ~r~Nao: %d",votesim,votenao);
        
TextDrawSetString(votacao,result);
    }
    return 
1;
}
CMD:cor(playerid)
{
    
ShowPlayerDialog(playerid,147,DIALOG_STYLE_LIST,"Escolha uma cor","{FF2222}Vermelho\n{22FF22}Verde\n{2222FF}Azul\n{FFFF22}Amarelo\n{FF22FF}Rosa\n{FF7A17}Laranja\n{8A3400}Marrom\n{222222}Preto\n{888888}Cinza\n{FFFFFF}Branco\n{22FFFF}Ciano","Selecionar","Sair");
    return 
1;
}
CMD:hudcolor(playerid)
{
    
ShowPlayerDialog(playerid,DIALOG_HUD,DIALOG_STYLE_LIST,"Selecione a cor:","Original\nVermelho\nAzul\nAmarelo\nRosa\nRestart","Selecionar","Sair");
    return 
1;
}
CMD:tv(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    {
        new 
id;
        if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /tv [ID]");
        if(
IsPlayerConnected(id))
        {
            
TogglePlayerSpectating(playerid,1);
            
PlayerSpectatePlayer(playerid,id);
            
KillTimer(tvtimer[playerid]);
            
tvtimer[playerid] = SetTimerEx("TV",500,true,"dd",playerid,id);
            
SetPlayerInterior(playerid,GetPlayerInterior(id));
            
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
            
SendClientMessage(playerid,amarelo,"Vocк ligou sua TV!");
        }
        else return 
SendClientMessage(playerid,azul,"ID Invalido!");
    }
    return 
1;
}
CMD:desligartv(playerid)
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    
KillTimer(tvtimer[playerid]);
    
TogglePlayerSpectating(playerid,0);
    
SendClientMessage(playerid,amarelo,"Vocк desligou a TV.");
    return 
1;
}
CMD:gmx(playerid)
{
    if(
Player[playerid][admin] != 11) return SendClientMessage(playerid,azul,"Comando so para admins master!");
    {
        
SendClientMessage(playerid,laranja,"Salvando contas...");
        new 
cont;
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                
SalvarConta(i);
                
cont++;
            }
        }
        new 
contag[30];
        
format(contag,30,"%d contas salvas.",cont);
        
SendClientMessage(playerid,laranja,contag);
        
SendClientMessageToAll(azul,"{FFFFFF}Atenзгo: {4444FF}O servidor esta sendo reiniciado! Aguarde!");
        
SendRconCommand("GMX");
        return 
1;
    }
}
CMD:admins(playerid)
{
    if(
HaveAdminsOnline())
    {
        
SendClientMessage(playerid,rosa,"Admin(s) Online:");
        new 
adm[15], ad[45];
        for(new 
0MAX_PLAYERSi++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
Player[i][admin] != 0)
                {
                    switch(
Player[i][admin])
                    {
                        case 
1adm "Novato";
                        case 
2adm "Intermediario";
                        case 
3adm "Veterano";
                        case 
11adm "Dono";
                        case 
10adm "Master";
                    }
                    
format(ad,sizeof ad,"-> %s [%s]",GetName(i),adm);
                    
SendClientMessage(playerid,marrom,ad);
                }
            }
        }
    }
    else 
SendClientMessage(playerid,azul,"Nгo hб admins online!");
    return 
1;
}
CMD:duel(playerid)
{
    if(
Morto[playerid] == true) return SendClientMessage(playerid,azul,"Vocк nгo pode digitar este comando estando morto!");
    if(
Duel[playerid] != 998) return SendClientMessage(playerid,azul,"Vocк jб estб em um DUEL.");
    
Duel[playerid] = 999;
    
SetPlayerInterior(playerid,1);
    
Lagduel[playerid] = false;
    
SetPlayerVirtualWorld(playerid,playerid);
    
SetPlayerPos(playerid,1403.6039,-20.7303,1000.9115);
    
SetPlayerFacingAngle(playerid,92.2);
    new 
anuncio[80];
    
format(anuncio,sizeof anuncio,"[DUEL] %s criou um duel! Digite /aceitar {FFFFFF}%d.",GetName(playerid),playerid);
    
SendClientMessageToAll(verde,anuncio);
    return 
1;
}
CMD:lagduel(playerid)
{
    if(
Morto[playerid] == true) return SendClientMessage(playerid,azul,"Vocк nгo pode digitar este comando estando morto!");
    if(
Duel[playerid] != 998) return SendClientMessage(playerid,azul,"Vocк jб estб em um DUEL.");
    
Duel[playerid] = 999;
    
Lagduel[playerid] = true;
    
SetPlayerTeam(playerid,playerid+10);
    
SetPlayerInterior(playerid,1);
    
SetPlayerVirtualWorld(playerid,playerid);
    
SetPlayerPos(playerid,1403.6039,-20.7303,1000.9115);
    
SetPlayerFacingAngle(playerid,92.2);
    new 
anuncio[99];
    
format(anuncio,sizeof anuncio,"[DUEL] {FFFFFF}%s {22FF22}criou um duel no lag! Digite /aceitar {FFFFFF}%d",GetName(playerid),playerid);
    
SendClientMessageToAll(verde,anuncio);
    return 
1;
}
CMD:des******(playerid)
{
    if(
Player[playerid][admin] < 3) return 0;
    new 
a[80];
    if(
des == true)
    {
        
format(a,sizeof a,"O Admin {FFFFFF}%s {FFFF55}ativou o ******!",GetName(playerid));
        
des false;
    }
    else 
    {
        
format(a,sizeof a,"O Admin {FFFFFF}%s {FFFF55}desativou o ******!",GetName(playerid));
        
des true;
    }
    
SendClientMessageToAll(0xFFFF55FF,a);
    return 
1;
}
CMD:aceitar(playerid,params[])
{
    if(
Morto[playerid] == true) return SendClientMessage(playerid,azul,"Vocк nгo pode digitar este comando estando morto!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /aceitar [ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    if(
Duel[id] != 999) return SendClientMessage(playerid,azul,"Duel ja comeзou ou nгo existe!");
    if(
id == playerid) return SendClientMessage(playerid,azul,"Vocк nгo pode aceitar seu proprio duel");
    new 
a[95];
    
format(a,sizeof a,"[DUEL] {FFFFFF}%s {FF7A17}aceitou duel com {FFFFFF}%s!",GetName(playerid),GetName(id));
    
SendClientMessageToAll(laranja,a);
    
Duel[id] = playerid;
    
Duel[playerid] = id;
    
Lagduel[playerid] = Lagduel[id];
    
SetPlayerVirtualWorld(playerid,id);
    
SetPlayerInterior(playerid,1);
    
SetPlayerPos(playerid,1376.0934,-22.0428,1000.9268);
    
SetPlayerFacingAngle(playerid,271.4);
    
SetPlayerPos(id,1403.6039,-20.7303,1000.9115);
    
SetPlayerFacingAngle(id,92.4);
    
Contagem(playerid,id);
    return 
1;
}
CMD:skin(playerid,params[])
{
    new 
skinid;
    if(
sscanf(params,"d",skinid)) return SendClientMessage(playerid,azul,"Uso /skin [ID]");
    if(
skinid || skinid 299) return SendClientMessage(playerid,azul,"O ID deve estar entre 0 e 299");
    
SetPlayerSkin(playerid,skinid);
    
skine[playerid] = skinid;
    return 
1;
}
CMD:eal(playerid)
{
    if(
Player[playerid][admin] < 10) return SendClientMessage(playerid,azul,"Comando so para admins master!");
    if(
FreeArmour == false)
    {
        
FreeArmour true;
        
SendClientMessageToAll(amarelo,"Ganhar colete/vida ao matar alguem ATIVADO");
        return 
1;
    }
    else
    {
        
FreeArmour false;
        
SendClientMessageToAll(amarelo,"Ganhar colete/vida ao matar alguem DESATIVADO");
    }
    return 
1;
}
CMD:kick(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
idreason[40];
    if(
sscanf(params,"ds",id,reason)) return SendClientMessage(playerid,azul,"Uso: /kick [ID][MOTIVO]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
    new 
msg[80];
    
format(msg,80,"[ADMCMD] O admin %s kickou %s. Motivo: %s",GetName(playerid),GetName(id),reason);
    
SendClientMessageToAll(rosa,msg);
    
Kick(id);
    return 
1;
}
CMD:ban(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
idreason[40];
    if(
sscanf(params,"ds",id,reason)) return SendClientMessage(playerid,azul,"Uso: /ban [ID][MOTIVO]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
    new 
msg[80];
    
format(msg,80,"[ADMCMD] O admin %s baniu %s. Motivo: %s",GetName(playerid),GetName(id),reason);
    
SendClientMessageToAll(rosa,msg);
    
SalvarConta(id);
    
Ban(id);
    return 
1;
}
CMD:tapa(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /tapa [ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(id,x,y,z);
    
SetPlayerPos(id,x,y,z+15);
    return 
1;
}
CMD:supertapa(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /supertapa [ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invбlido");
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(id,x,y,z);
    
SetPlayerPos(id,x,y,z+25);
    return 
1;
}
CMD:av(playerid,params[])
{
    if(
Player[playerid][admin] <= 0) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
a[170];
    
format(a,sizeof a,"Admin %s: {FFFFFF}%s",GetName(playerid),params);
    
SendClientMessageToAll(rosa,a);
    return 
1;
}
CMD:criaradm(playerid,params[])
{
    if(
Player[playerid][admin] < 11) return SendClientMessage(playerid,azul,"Comando so para admins dono!");
    new 
idlevel;
    if(
sscanf(params,"dd",id,level)) return SendClientMessage(playerid,azul,"Uso: /criaradm [ID][NIVEL]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    
Player[id][admin] = level;
    new 
a[80], b[80];
    
format(a,sizeof a,"Vocк promoveu {FFFFFF}%s {00FFFF}a admin nнvel {FFFFFF}%d.",GetName(id),level);
    
SendClientMessage(playerid,ciano,a);
    
format(b,sizeof b,"Vocк foi promovido a nнvel {FFFFFF}%d {00FFFF}de admin por {FFFFFF}%s.",level,GetName(playerid));
    
SendClientMessage(id,ciano,b);
    return 
1;
}
CMD:******(playerid,params[])
{
    if(
des == true) return SendClientMessage(playerid,azul,"O ****** estб Desligado!");
    if(
Player[playerid][admin] < 1) return SendClientMessage(playerid,azul,"Comando so para admins!");
    new 
msg[128];
    if(
sscanf(params,"s[128]",msg)) return SendClientMessage(playerid,azul,"Uso: /****** [MSG]");
    new 
str2[180];
    
format(str2,180,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}%s",msg);
    
SendClientMessageToAll(branco,str2);
    return 
1;
}
CMD:******voice(playerid,params[])
{
    if(
des == true) return SendClientMessage(playerid,azul,"O ****** estб Desligado!");
    if(
Player[playerid][admin] < 3) return SendClientMessage(playerid,azul,"Comando so para admins veteranos!");
    new 
msg[128];
    if(
sscanf(params,"s[128]",msg)) return SendClientMessage(playerid,azul,"Uso: /******voice [MSG]");
    new 
str2[180],str1[180];
    
format(str2,180,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}%s",msg);
    
format(str1,180,"http://translate.******.com/translate_tts?tl=pt&q=%s",msg);
    
SendClientMessageToAll(branco,str2);
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            
PlayAudioStreamForPlayer(i,str1);
        }
    }
    return 
1;
}
CMD:perguntar(playerid,params[])
{
    if(
ready != 0) return SendClientMessage(playerid,azul,"Espere eu descansar! Eu tenho sentimentos!");
    if(
isnull(params)) return SendClientMessage(playerid,azul,"Pergunte algo!");
    
SetTimer("Liberty******",5000,false);
    new 
perg[150];
    
format(perg,150,"%s pergunta: {FFFFFF}%s",GetName(playerid),params);
    if(
strcmp(params,"qual o meu kd?",true) == || strcmp(params,"meu kd?",true) == || strcmp(params,"qual й o meu kd?",true) == 0)
    {
        
SendClientMessageToAll(GetPlayerColor(playerid),perg);
        new 
kd[135];
        
format(kd,sizeof kd,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}%s, vocк matou: %d morreu: %d ganhou: %d duels.",GetName(playerid),Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins]);
        
SendClientMessageToAll(branco,kd);
        return 
1;
    }
    if(
des == true) return SendClientMessage(playerid,azul,"O ****** estб Desligado!");
    
SendClientMessageToAll(GetPlayerColor(playerid),perg);
    new 
rand random(10);
    switch(
rand)
    {
        case 
0SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}talvez.");
        case 
1SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}nгo sei.");
        case 
2SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}sim.");
        case 
3SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}nгo.");
        case 
4SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}ta me zuando?");
        case 
5SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}prefiro nao responder esta pergunta.");
        case 
6SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}claro que sim, sу que nao.");
        case 
7SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}logico que sim.");
        case 
8SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}mas й claro que nгo.");
        case 
9SendClientMessageToAll(branco,"{4444FF}G{FF4444}o{FFFF44}o{4444FF}g{44FF44}l{FF4444}e: {FFFFFF}foda-se o que vocк diz.");
    }
    
ready 1;
    return 
1;
}
CMD:pegaradm(playerid)
{
    if(
IsPlayerAdmin(playerid))
    {
        
Player[playerid][admin] = 11;
        
SendClientMessage(playerid,vermelho,"FODEO");
        return 
1;
    }
    return 
0;
}
CMD:comandos(playerid)
{
    
SendClientMessage(playerid,laranja,"Comandos: /par /report /skin /aceitar /duel /admins /sairduel /cor /veh /afk /perguntar /versao /votemap");
    
SendClientMessage(playerid,laranja,"Comandos: /lagduel /b ");
    return 
1;
}
CMD:par(playerid,params[])
{
    new 
idtext[128];
    if(
sscanf(params,"ds[128]",id,text)) return SendClientMessage(playerid,azul,"Uso: /par [ID][MSG]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    new 
a[140],b[140];
    
format(a,sizeof a,"Particular de %s [%d]:{FFFFFF} %s",GetName(playerid),playerid,text);
    
format(b,sizeof b,"Particular para %s:{FFFFFF} %s",GetName(id),text);
    
SendClientMessage(id,rosa,a);
    
SendClientMessage(playerid,rosa,b);
    return 
1;
}
CMD:ir(playerid,params[])
{
    if(
Player[playerid][admin] == 0) return SendClientMessage(playerid,azul,"Vocк nгo й um admin!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /ir [NOME/ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    new 
Float:xFloat:yFloat:zintworld;
    
GetPlayerPos(id,x,y,z);
    
int GetPlayerInterior(id);
    
world GetPlayerVirtualWorld(id);
    
SetPlayerVirtualWorld(playerid,world);
    
SetPlayerInterior(playerid,int);
    
SetPlayerPos(playerid,1,1,1);
    return 
1;
}
CMD:trazer(playerid,params[])
{
    if(
Player[playerid][admin] == 0) return SendClientMessage(playerid,azul,"Vocк nгo й um admin!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /trazer [NOME/ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    new 
Float:xFloat:yFloat:zintworld;
    
GetPlayerPos(playerid,x,y,z);
    
int GetPlayerInterior(playerid);
    
world GetPlayerVirtualWorld(playerid);
    
SetPlayerVirtualWorld(id,world);
    
SetPlayerInterior(id,int);
    
SetPlayerPos(id,1,1,1);
    return 
1;
}
CMD:desbanirip(playerid,params[])
{
    if(
Player[playerid][admin] <= 1) return SendClientMessage(playerid,azul,"Vocк precisa ser admin nнvel 2");
    new 
ip[17];
    if(
sscanf(params,"s[17]",ip)) return SendClientMessage(playerid,azul,"Uso: /desbanirip [IP]");
    new 
a[30];
    
format(a,sizeof a,"unbanip %s",ip);
    
SendRconCommand(a);
    
SendClientMessage(playerid,verde,"IP Desbanido.");
    return 
1;
}
CMD:tempo(playerid,params[])
{
    if(
Player[playerid][admin] < 3) return SendClientMessage(playerid,azul,"Vocк nгo й um admin nнvel 3");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /tempo [ID]");
    if(
id 45 || id 0) return SendClientMessage(playerid,azul,"O ID deve estar entre 0 e 45");
    
SetWeather(id);
    
SendClientMessage(playerid,verde,"Vocк setou o tempo!");
    return 
1;
}    
CMD:a(playerid,params[])
{
    if(
Player[playerid][admin] == 0) return SendClientMessage(playerid,azul,"Comando sу para admins!");
    if(
isnull(params)) return SendClientMessage(playerid,azul,"Digite algo!");
    new 
text[55+128];
    
format(text,sizeof text,"* Admin %s %s: %s",GetCargo(playerid),GetName(playerid),params);
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i) && Player[i][admin] > 0)
        {
            
SendClientMessage(i,0xFF66FFFF,text);
        }
    }
    return 
1;
}
CMD:b(playerid,params[])
{
    if(
isnull(params)) return SendClientMessage(playerid,azul,"Uso: /b [TEXTO] (Chat Proximo)");
    new 
Float:aFloat:bFloat:cd[200];
    
format(d,sizeof d,"Chat Prox. %s: {FFFFFF}%s",GetName(playerid),params);
    
GetPlayerPos(playerid,a,b,c);
    for(new 
0MAX_PLAYERSe++)
    {
        if(
IsPlayerConnected(e))
        {
            if(
IsPlayerInRangeOfPoint(e,10.0,a,b,c))
            {
                
SendClientMessage(e,GetPlayerColor(playerid),d);
            }
        }
    }
    return 
1;
}    
CMD:infoplayer(playerid,params[])
{
    if(
Player[playerid][admin] == 0) return SendClientMessage(playerid,azul,"Comando sу para admins!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /infoplayer [ID]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid,azul,"ID Invalido!");
    new 
infos[150], weap[18], Float:lifeFloat:col;
    
GetPlayerHealth(id,life);
    
GetPlayerArmour(id,col);
    
GetWeaponName(GetPlayerWeapon(id),weap,sizeof weap);
    
format(infos,sizeof infos,"[INFO de %s] {FFFF55}Arma: {FFFFFF}%s {FFFF55}Muniзгo: {FFFFFF}%d {FFFF55}Vida: {FFFFFF}%d {FFFF55}Colete: {FFFFFF}%d",GetName(id),weap,GetPlayerAmmo(id),floatround(life),floatround(col));
    
SendClientMessage(playerid,0xFFFF55FF,infos);
    return 
1;
}
CMD:report(playerid,params[])
{
    if(
HaveAdminsOnline())
    {
        new 
text[128];
        if(
sscanf(params,"s[128]",text)) return SendClientMessage(playerid,azul,"Uso: /report [MSG]");
        new 
a[145];
        
format(a,sizeof a,"Report de %s [%d]:{FFFFFF} %s",GetName(playerid),playerid,text);
        
SendClientMessage(playerid,rosa,a);
        
SendMessageToAdmins(a);
        return 
1;
    }
    else 
SendClientMessage(playerid,azul,"Nгo hб admins online!");
    return 
1;
}
    
CMD:ajudaadmin(playerid)
{
    switch(
Player[playerid][admin])
    {
        case 
1SendClientMessage(playerid,laranja,"Comandos 1: /av /tapa /supertapa /kick /ban /tv /desligartv /verip /agendarban /a /infoplayer");
        case 
2:
        {
            
SendClientMessage(playerid,laranja,"Comandos 1: /av /tapa /supertapa /kick /ban /tv /desligartv /verip /agendarban /a /infoplayer");
            
SendClientMessage(playerid,laranja,"Comandos 2: /desbanirip /ir /trazer /esconderijo /******");
        }
        case 
3:
        {
            
SendClientMessage(playerid,laranja,"Comandos 1: /av /tapa /supertapa /kick /ban /tv /desligartv /verip /agendarban /a /infoplayer");
            
SendClientMessage(playerid,laranja,"Comandos 2: /desbanirip /ir /trazer /esconderijo /******");
            
SendClientMessage(playerid,laranja,"Comandos 3: /******voice /des****** /tempo");
        }
        case 
10,11
        {
            
SendClientMessage(playerid,laranja,"Comandos 1: /av /tapa /supertapa /kick /ban /tv /desligartv /verip /agendarban /a /infoplayer");
            
SendClientMessage(playerid,laranja,"Comandos 2: /desbanirip /ir /trazer /esconderijo /******");
            
SendClientMessage(playerid,laranja,"Comandos 3: /******voice /des****** /tempo");
            
SendClientMessage(playerid,laranja,"Comandos Master: /gmx /eal /criaradm /nextbase /infodetalhe");
        }
    }
    return 
1;
}
CMD:nextbase(playerid)
{
    if(
Player[playerid][admin] < 10) return SendClientMessage(playerid,azul,"Comandos para admins master!");
    
KillTimer(tbase);
    
KillTimer(inicio);
    
tbase SetTimer("ChangeArea",900000,true);
    
ChangeArea();
    return 
1;
}
CMD:votemap(playerid)
{
    if(
votestart == true) return SendClientMessage(playerid,azul,"Uma votaзгo jб foi iniciada!");
    if(
blockvote == true) return SendClientMessage(playerid,azul,"A ъltima votaзгo nгo passou! Aguarde o prуximo mapa!");
    if(
liberarvotes == false) return SendClientMessage(playerid,azul,"Vocк sу pode votar um novo mapa apуs 5 minutos do comeзo de um!");
    new 
a[128+24];
    
format(a,sizeof a,"[VOTAЗГO] {FFFFFF}%s {FFFF55}iniciou uma votaзгo para trocar o mapa! Aperte 'Y' para {55FF55}Sim {FFFF55}e 'N' para {FF5555}Nгo.",GetName(playerid));
    
SendClientMessageToAll(0xFFFF55FF,a);
    
TextDrawSetString(votacao,"~g~Sim: ~w~0 | ~r~Nгo: ~w~0");
    
TextDrawShowForAll(votacao);
    
SetTimer("ContarVotos",30000,false);
    
votestart true;
    return 
1;
}    
CMD:sairduel(playerid)
{
    if(
Duel[playerid] == 999)
    {
        
SpawnPlayer(playerid);
        
Duel[playerid] = 998;
        return 
1;
    }
    if(
Duel[playerid] == 998) return SendClientMessage(playerid,azul,"Vocк nгo estб em duel!");
    new 
a[100];
    
format(a,sizeof a,"[DUEL] O player %s correu no meio do duel contra %s!",GetName(playerid),GetName(Duel[playerid]));
    
SendClientMessageToAll(marrom,a);
    
SpawnPlayer(Duel[playerid]);
    
SpawnPlayer(playerid);
    return 
1;
}
CMD:verip(playerid,params[])
{
    if(
Player[playerid][admin] == 0) return SendClientMessage(playerid,azul,"Comando sу para admins!");
    new 
id;
    if(
sscanf(params,"d",id)) return SendClientMessage(playerid,azul,"Uso: /verip [ID]");
    new 
a[80], ip[17] ,arqplayer[30];
    
format(arqplayer,sizeof arqplayer,"/acc/%s.ini",GetName(id));
    
GetPlayerIp(id,ip,sizeof ip);
    
format(a,sizeof a,"%s last ip: %s. new ip: %s",GetName(id),DOF2_GetString(arqplayer,"IP"),ip);
    
SendClientMessage(playerid,verde,a);
    return 
1;
}    
CMD:versao(playerid)
{
    new 
vers[500];
    
format(vers,sizeof vers,"{66FF66}Adicionado:\n{FFFFFF}%s\n{FF6666}Removido:\n{FFFFFF}%s",adicionado,removido);
    
ShowPlayerDialog(playerid,654,DIALOG_STYLE_MSGBOX,"Versгo {55FF55}1.2c",vers,"Ok","");
    return 
1;
}
CMD:bug(playerid)
{
    
ShowPlayerDialog(playerid,655,DIALOG_STYLE_INPUT,"{00FFAA}Reportar um bug","Faзa uma breve descriзгo do problema.\nExemplo:{00CC00}Jogador quando morre nгo renasce!","Reportar","Sair");
    return 
1;
}
CMD:sugestao(playerid)
{
    
ShowPlayerDialog(playerid,656,DIALOG_STYLE_INPUT,"{00FFAA}Enviar uma sugestгo","Faзa uma breve explicaзгo da sugestгo.\nExemplo:{00CC00}Nascer com M4.","Enviar","Sair");
    return 
1;
}
CMD:car(playerid)
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playerid,x,y,z);
    new 
newveh CreateVehicle(560,x,y,z,0,7,7,0);
    
PutPlayerInVehicle(playerid,newveh,0);
    return 
1;
}
CMD:dararma(playerid,params[])
{
    if(
Player[playerid][admin] <= 10) return SendClientMessage(playerid,azul,"Comando sу para donos!");
    new 
armaammo;
    if(
sscanf(params,"dd",arma,ammo)) return SendClientMessage(playerid,azul,"Uso: /dararma [ARMA][MUNIЗГO]");
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            
GivePlayerWeapon(i,arma,ammo);
        }
    }
    new 
a[180],b[20];
    
GetWeaponName(arma,b,sizeof b);
    
format(a,180,"[ARMA] O admin {FFFFFF}%s {FFFF55}deu uma {FFFFFF}%s {FFFF55}com {FFFFFF}%d {FFFF55}de muniзгo para todos os jogadores!",GetName(playerid),b,ammo);
    
SendClientMessageToAll(0xFFFF55FF,a);
    return 
1;
}
CMD:infodetalhe(playerid,params[])
{
    if(
Player[playerid][admin] <= 9) return SendClientMessage(playerid,azul,"Vocк nгo й um admin master!");
    new 
name[24],file[35];
    if(
sscanf(params,"s[24]",name)) return SendClientMessage(playerid,azul,"Uso /infodetalhe [NOME]");
    
format(file,35,"/acc/%s.ini",name);
    if(
DOF2_FileExists(file))
    {
        new 
infos[200];
        
SendClientMessage(playerid,laranja,"Obetendo informaзхes da conta...");
        new 
a,b,c,d,e,f,g;
        
DOF2_GetInt(file,"Matou");
        
DOF2_GetInt(file,"Morreu");
        
DOF2_GetInt(file,"Admin");
        
DOF2_GetInt(file,"Wins");
        
DOF2_GetInt(file,"Losses");
        
DOF2_GetInt(file,"Score");
        
DOF2_GetInt(file,"Logins");
        
format(infos,200,"Conta %s -> Matou: %d Morreu: %d Admin: %d Duel Wins: %d Duel Losses: %d Score: %d Logins: %d IP: %s",name,a,b,c,d,e,f,g,DOF2_GetString(file,"IP"));
        
SendClientMessage(playerid,amarelo,infos);
    }
    else return 
SendClientMessage(playerid,azul,"Player nгo encontrado!");
    return 
1;
}
CMD:afk(playerid)
{
    if(
afk[playerid] == true)
    {
        
SpawnPlayer(playerid);
        
afk[playerid] = false;
    }
    else
    {
        new 
Float:arm;
        
GetPlayerArmour(playerid,arm);
        if(
arm 100) return SendClientMessage(playerid,azul,"Vocк sу pode usar /afk com a vida/colete cheios!");
        
afk[playerid] = true;
        
SetPlayerVirtualWorld(playerid,30);
        
SetPlayerInterior(playerid,1);
        
SetPlayerPos(playerid,1403.6039,-20.7303,1000.9115);
        
SetPlayerHealth(playerid,5000);
        
ResetPlayerWeapons(playerid);
        
SendClientMessage(playerid,ciano,"Vocк estб no /afk. Digite /afk para sair");
    }
    return 
1;
}
stock SetPlayerRandomPos(playerid)
{
    switch(
area)
    {
        case 
1:
        {
            new 
rand random(sizeof bacres);
            
SetPlayerPos(playerid,bacres[rand][0],bacres[rand][1],bacres[rand][2]);
            
SetPlayerFacingAngle(playerid,bacres[rand][3]);
        }
        case 
2:
        {
            new 
rand random(sizeof bayside);
            
SetPlayerPos(playerid,bayside[rand][0],bayside[rand][1],bayside[rand][2]);
            
SetPlayerFacingAngle(playerid,bayside[rand][3]);
        }
        case 
3:
        {
            new 
rand random(sizeof psquare);
            
SetPlayerPos(playerid,psquare[rand][0],psquare[rand][1],psquare[rand][2]);
            
SetPlayerFacingAngle(playerid,psquare[rand][3]);
        }
        case 
4:
        {
            new 
rand random(sizeof sfbeach);
            
SetPlayerPos(playerid,sfbeach[rand][0],sfbeach[rand][1],sfbeach[rand][2]);
            
SetPlayerFacingAngle(playerid,sfbeach[rand][3]);
        }
        case 
5:
        {
            new 
rand random(sizeof fcarson);
            
SetPlayerPos(playerid,fcarson[rand][0],fcarson[rand][1],fcarson[rand][2]);
            
SetPlayerFacingAngle(playerid,fcarson[rand][3]);
        }
        case 
6:
        {
            new 
rand random(sizeof temple);
            
SetPlayerPos(playerid,temple[rand][0],temple[rand][1],temple[rand][2]);
            
SetPlayerFacingAngle(playerid,temple[rand][3]);
        }
        case 
7:
        {
            new 
rand random(sizeof enorth);
            
SetPlayerPos(playerid,enorth[rand][0],enorth[rand][1],enorth[rand][2]);
            
SetPlayerFacingAngle(playerid,enorth[rand][3]);
        }
        case 
8:
        {
            new 
rand random(sizeof fintersection);
            
SetPlayerPos(playerid,fintersection[rand][0],fintersection[rand][1],fintersection[rand][2]);
            
SetPlayerFacingAngle(playerid,fintersection[rand][3]);
        }
        case 
9:
        {
            new 
rand random(sizeof elquebrados);
            
SetPlayerPos(playerid,elquebrados[rand][0],elquebrados[rand][1],elquebrados[rand][2]);
            
SetPlayerFacingAngle(playerid,elquebrados[rand][3]);
        }
        case 
10:
        {
            new 
rand random(sizeof vbeach);
            
SetPlayerPos(playerid,vbeach[rand][0],vbeach[rand][1],vbeach[rand][2]);
            
SetPlayerFacingAngle(playerid,vbeach[rand][3]);
        }
        case 
11:
        {
            new 
rand random(sizeof rgigante);
            
SetPlayerPos(playerid,rgigante[rand][0],rgigante[rand][1],rgigante[rand][2]);
            
SetPlayerFacingAngle(playerid,rgigante[rand][3]);
        }
        case 
12:
        {
            new 
rand random(sizeof a51);
            
SetPlayerPos(playerid,a51[rand][0],a51[rand][1],a51[rand][2]);
            
SetPlayerFacingAngle(playerid,a51[rand][3]);
        }
        case 
13:
        {
            new 
rand random(sizeof regtom);
            
SetPlayerPos(playerid,regtom[rand][0],regtom[rand][1],regtom[rand][2]);
            
SetPlayerFacingAngle(playerid,regtom[rand][3]);
        }
        case 
14:
        {
            new 
rand random(sizeof gpalms);
            
SetPlayerPos(playerid,gpalms[rand][0],gpalms[rand][1],gpalms[rand][2]);
            
SetPlayerFacingAngle(playerid,gpalms[rand][3]);
        }
    }
}
stock SendMessageToAdmins(msg[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Player[i][admin] >= 1)
            {
                
SendClientMessage(i,rosa,msg);
            }
        }
    }
}
stock HaveAdminsOnline()
{
    for(new 
0MAX_PLAYERS; ++i)
    {
        if(
IsPlayerConnected(i))
        {
            if(
Player[i][admin] >= 1)
            {
                return 
1;
            }
        }
    }
    return 
0;
}
stock Atualizar(playerid,color)
{
    new 
alltext[150];
    switch(
color)
    {
        case 
0format(alltext,150,"~g~Matou: ~w~%d ~g~Morreu: ~w~%d ~g~Wins: ~w~%d ~g~Losses: ~w~%d ~g~Score: ~w~%d ~g~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
        case 
1format(alltext,150,"~r~Matou: ~w~%d ~r~Morreu: ~w~%d ~r~Wins: ~w~%d ~r~Losses: ~w~%d ~r~Score: ~w~%d ~r~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
        case 
2format(alltext,150,"~b~Matou: ~w~%d ~b~Morreu: ~w~%d ~b~Wins: ~w~%d ~b~Losses: ~w~%d ~b~Score: ~w~%d ~b~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
        case 
3format(alltext,150,"~y~Matou: ~w~%d ~y~Morreu: ~w~%d ~y~Wins: ~w~%d ~y~Losses: ~w~%d ~y~Score: ~w~%d ~y~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
        case 
4format(alltext,150,"~p~Matou: ~w~%d ~p~Morreu: ~w~%d ~p~Wins: ~w~%d ~p~Losses: ~w~%d ~p~Score: ~w~%d ~p~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
        case 
5format(alltext,150,"~g~Matou: ~w~%d ~r~Morreu: ~w~%d ~b~Wins: ~w~%d ~y~Losses: ~w~%d ~p~Score: ~w~%d ~g~Spree: ~w~%d",Player[playerid][matou],Player[playerid][morreu],Player[playerid][wins],Player[playerid][losses],GetPlayerScore(playerid),spree[playerid]);
    }    
    
PlayerTextDrawSetString(playerid,hudtext[playerid],alltext);
    
SalvarConta(playerid);
}
stock DeadPlayer(deadid,killerid,crimegun)
{
    
cMatou[killerid][deadid] ++;
    new 
resultado[70];
    
format(resultado,sizeof resultado,"~g~%s ~w~%d X %d ~r~%s",GetName(deadid),cMatou[deadid][killerid],cMatou[killerid][deadid],GetName(killerid));
    
PlayerTextDrawSetString(deadid,combate[deadid],resultado);
    
PlayerTextDrawShow(deadid,combate[deadid]);
    
Aj[deadid] = false;
    new 
cinco random(20);
    if(
cinco == 5)
    {
        new 
rand random(10);
        new 
killa[140];
        switch(
crimegun)
        {
            case 
24format(killa,140,"[KILL] {FFFFFF}%s {FF5555}%s {FFFFFF}%s {FF5555}com uma desert eagle!",GetName(killerid),motiva[rand],GetName(deadid));
            case 
25format(killa,140,"[KILL] {FFFFFF}%s {FF5555}%s {FFFFFF}%s {FF5555}com uma shotgun!",GetName(killerid),motiva[rand],GetName(deadid));
            case 
34format(killa,140,"[KILL] {FFFFFF}%s {FF5555}%s {FFFFFF}%s {FF5555}com uma sniper!",GetName(killerid),motiva[rand],GetName(deadid));
            case 
31format(killa,140,"[KILL] {FFFFFF}%s {FF5555}%s {FFFFFF}%s {FF5555}com uma M4!",GetName(killerid),motiva[rand],GetName(deadid));
        }
        
SendClientMessageToAll(0xFF5555FF,killa);
    }
    if(
Duel[deadid] != 998)
    {
        
EndDuel(killerid,deadid,Lagduel[killerid]);
    }
    new 
kill[90];
    
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid) + 1);
    
Player[deadid][morreu] ++;
    
Player[killerid][matou]++;
    
spree[killerid] ++;
    switch(
crimegun)
    {
        case 
0:
        {
            
GivePlayerWeapon(killerid,34,50);
            
GivePlayerWeapon(killerid,24,250);
            
GivePlayerWeapon(killerid,25,100);
            
GivePlayerWeapon(killerid,0,0);
        }
        case 
4:
        {
            
GivePlayerWeapon(killerid,34,50);
            
GivePlayerWeapon(killerid,24,250);
            
GivePlayerWeapon(killerid,25,100);
            
GivePlayerWeapon(killerid,4,1);
            new 
msg[120];
            
format(msg,120,"[KILL] {FFFFFF}%s{FF5555} passou a lambida em {FFFFFF}%s!",GetName(killerid),GetName(deadid));
            
SendClientMessageToAll(0xFF5555FF,msg);
        }
        case 
9:
        {
            
GivePlayerWeapon(killerid,34,50);
            
GivePlayerWeapon(killerid,24,250);
            
GivePlayerWeapon(killerid,25,100);
            
GivePlayerWeapon(killerid,9,1);
            new 
msg[126];
            
format(msg,126,"[KILL] {FFFFFF}%s{FF5555} dilacerou {FFFFFF}%s {FF5555} com a serra elйtrica!",GetName(killerid),GetName(deadid));
            
SendClientMessageToAll(0xFF5555FF,msg);
        }
        case 
34:
        {
            
GivePlayerWeapon(killerid,24,250);
            
GivePlayerWeapon(killerid,25,100);
            
GivePlayerWeapon(killerid,34,50);
        }
        case 
24:
        {
            
GivePlayerWeapon(killerid,25,100);
            
GivePlayerWeapon(killerid,34,50);
            
GivePlayerWeapon(killerid,24,50);
        }
        case 
25:
        {
            
GivePlayerWeapon(killerid,34,50);
            
GivePlayerWeapon(killerid,24,250);
            
GivePlayerWeapon(killerid,25,100);
        }
    }
    switch(
spree[killerid])
    {
        case 
1GameTextForPlayer(killerid,"~y~Mandou Pra Vala!",3000,1);
        case 
2GameTextForPlayer(killerid,"~y~Double Kill",3000,1);
        case 
3GameTextForPlayer(killerid,"~y~Triple Kill",3000,1);
        case 
4GameTextForPlayer(killerid,"~y~Multi Kill",3000,1);
        case 
6GameTextForPlayer(killerid,"~y~Triple Kill x2",3000,1);
        case 
8GameTextForPlayer(killerid,"~y~Multi Kill x2",3000,1);
        case 
10GameTextForPlayer(killerid,"~y~Monster Killer!",3000,1);
        case 
15GameTextForPlayer(killerid,"~y~Holy Shit!",3000,1);
        case 
20GameTextForPlayer(killerid,"~y~Insane Killer!",3000,1);
        case 
30GameTextForPlayer(killerid,"~y~Fuckyea Killer!",3000,1);
        case 
50GameTextForPlayer(killerid,"~y~HARD Killer!",3000,1);
    }
    if(
spree[killerid] > 3)
    {
        switch(
spree[killerid])
        {
            case 
3,4,6,8,10,15,20,30,50:
            {
                
format(kill,90,"[SPREE] {FFFFFF}%s{FF4444} jб mandou {FFFFFF}%d {FF4444}pra cova!",GetName(killerid),spree[killerid]);
                
SendClientMessageToAll(vermelho,kill);
            }
        }
    }
    if(
spree[deadid] > 3)
    {
        
format(kill,90,"[SPREE]{FFFFFF} %s{22FF22} morreu, mas levou {FFFFFF}%d {22FF22}com ele!",GetName(deadid),spree[deadid]);
        
SendClientMessageToAll(verde,kill);
        
spree[deadid] = 0;
    }
    if(
FreeArmour == true)
    {
        
SetPlayerArmour(killerid,100);
        
SetPlayerHealth(killerid,100);
    }
    
Atualizar(deadid,HudColor[deadid]);
    
Atualizar(killerid,HudColor[killerid]);
}
stock CriarConta(playerid,password[])
{
    new 
arq[36];
    
format(arq,36,"/acc/%s.ini",GetName(playerid));
    
DOF2_CreateFile(arq,password);
    
DOF2_SetInt(arq,"Admin",0);
    
DOF2_SetInt(arq,"Skin",0);
    
DOF2_SetInt(arq,"Matou",0);
    
DOF2_SetInt(arq,"Morreu",0);
    
DOF2_SetInt(arq,"Clan",0);
    
DOF2_SetInt(arq,"Recorde",0);
    
DOF2_SetInt(arq,"RecordeSpree",0);
    
DOF2_SetInt(arq,"Losses",0);
    
DOF2_SetInt(arq,"Wins",0);
    
DOF2_SaveFile();
    
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja bem vindo","{22FF22}Sua conta foi criada!\nDigite sua senha para continuar!","Login","Sair");
}
stock CarregarConta(playerid,password[])
{
    new 
arq[36];
    
format(arq,36,"/acc/%s.ini",GetName(playerid));
    if(
DOF2_CheckLogin(arq,password))
    {
        
Player[playerid][matou] = 0;
        
Player[playerid][morreu] = 0;
        
Player[playerid][admin] = 0;
        
Recorde[playerid] = 0;
        
Player[playerid][wins] = 0;
        
Player[playerid][losses] = 0;
        
RecordeSpree[playerid] = 0;
        
SetPlayerScore(playerid,0);
        
Player[playerid][wins] = DOF2_GetInt(arq,"Wins");
        
Player[playerid][losses] = DOF2_GetInt(arq,"Losses");
        
Recorde[playerid] = DOF2_GetInt(arq,"Recorde");
        
RecordeSpree[playerid] = DOF2_GetInt(arq,"RecordeSpree");
        
Player[playerid][matou] = DOF2_GetInt(arq,"Matou");
        
Player[playerid][morreu] = DOF2_GetInt(arq,"Morreu");
        
Player[playerid][admin] = DOF2_GetInt(arq,"Admin");
        
HudColor[playerid] = DOF2_GetInt(arq,"HUD");
        
SetPlayerScore(playerid,DOF2_GetInt(arq,"Score"));
        
DOF2_SetInt(arq,"Logins",DOF2_GetInt(arq,"Logins") + 1);
        new 
ip[16];
        
GetPlayerIp(playerid,ip,16);
        
DOF2_SetString(arq,"IP",ip);
        
DOF2_SaveFile();
        
skine[playerid] = DOF2_GetInt(arq,"Skin");
        
Logado[playerid] = true;
        new 
welcome[150];
        
format(welcome,150,"Novo Player: {FFFFFF}%s {FFFF00}ID:{FFFFFF} %d {FFFF00}Logins: {FFFFFF}%d",GetName(playerid),playerid,DOF2_GetInt(arq,"Logins"));
        
SendClientMessageToAll(verde,welcome);
        
Atualizar(playerid,HudColor[playerid]);
        
SpawnPlayer(playerid);
    }
    else 
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Seja bem vindo!","{FF2222}Senha incorreta! For favor tente novamente...","Login","Sair");
}
stock SalvarConta(playerid)
{
    new 
arq[36];
    
format(arq,sizeof arq,"/acc/%s.ini",GetName(playerid));
    
DOF2_SetInt(arq,"Matou",Player[playerid][matou]);
    
DOF2_SetInt(arq,"Morreu",Player[playerid][morreu]);
    
DOF2_SetInt(arq,"Admin",Player[playerid][admin]);
    
DOF2_SetInt(arq,"Skin",skine[playerid]);
    
DOF2_SetInt(arq,"Wins",Player[playerid][wins]);
    
DOF2_SetInt(arq,"Losses",Player[playerid][losses]);
    
DOF2_SetInt(arq,"RecordeSpree",RecordeSpree[playerid]);
    
DOF2_SetInt(arq,"Recorde",Recorde[playerid]);
    
DOF2_SetInt(arq,"Score",GetPlayerScore(playerid));
    
DOF2_SetInt(arq,"HUD",HudColor[playerid]);
    new 
ip[16];
    
GetPlayerIp(playerid,ip,sizeof ip);
    
DOF2_SetString(arq,"IP",ip);
    
DOF2_SaveFile();
}
stock Contagem(p1,p2)
{
    
TogglePlayerControllable(p1,0);
    
TogglePlayerControllable(p2,0);
    
GameTextForPlayer(p1,"3",1000,6);
    
GameTextForPlayer(p2,"3",1000,6);
    
PlayerPlaySound(p1,1056,0,0,0);
    
PlayerPlaySound(p2,1056,0,0,0);
    
SetTimerEx("Cont",1000,false,"iii",p1,p2,2);
}
stock EndDuel(winner,loser,bool:dueltype)
{
    
Duel[winner] = 998;
    
Duel[loser] = 998;
    
Player[winner][wins] ++;
    
Player[loser][losses] ++;
    
Lagduel[winner] = false;
    
Lagduel[loser] = false;
    
SetPlayerTeam(winner,1);
    
SetPlayerTeam(loser,1);
    new 
wl[132];
    new 
Float:result,Float:life,Float:armour;
    
GetPlayerArmour(winner,armour);
    
GetPlayerHealth(winner,life);
    
result life armour;
    new 
type[4];
    if(
dueltype == truetype "LAG";
    if(
result >= 200)
    {
        
format(wl,sizeof wl,"[%sDUEL] O Player {FFFFFF}%s {FF7A17}venceu {FFFFFF}%s de {FFFF22}perfect!",type,GetName(winner),GetName(loser));
    }
    else
    {
        
format(wl,sizeof wl,"[%sDUEL] O Player {FFFFFF}%s {FF7A17}venceu {FFFFFF}%s, {FF7A17}sobrando {FFFFFF}%d.",type,GetName(winner),GetName(loser),floatround(result));
    }
    
SendClientMessageToAll(laranja,wl);
    
SetPlayerVirtualWorld(winner,0);
    
SetPlayerInterior(winner,0);
    
SetPlayerHealth(winner,100);
    
SetPlayerArmour(winner,100);
    
SetPlayerRandomPos(winner);
    return 
1;
}
stock GetRec(type,rank)
{    
    
// 0 = Kills | 1 = Spree
    
new f[17] = "/rank/score.ini";
    new final[
60];
    switch(
type)
    {
        case 
0:
        {
            switch(
rank)
            {
                case 
0format(final,sizeof final,"1є em kills: %s com %d assassinatos\n",DOF2_GetString(f,"Matou1Name"),DOF2_GetString(f,"Matou1"));
                case 
1format(final,sizeof final,"2є em kills: %s com %d assassinatos\n",DOF2_GetString(f,"Matou2Name"),DOF2_GetString(f,"Matou2"));
                case 
2format(final,sizeof final,"3є em kills: %s com %d assassinatos\n",DOF2_GetString(f,"Matou3Name"),DOF2_GetString(f,"Matou3"));
            }
        }
        case 
1:
        {
            switch(
rank)
            {
                case 
0format(final,sizeof final,"1є em spree: %s com %d assassinatos\n",DOF2_GetString(f,"Spree1Name"),DOF2_GetString(f,"Spree1"));
                case 
1format(final,sizeof final,"2є em spree: %s com %d assassinatos\n",DOF2_GetString(f,"Spree2Name"),DOF2_GetString(f,"Spree2"));
                case 
2format(final,sizeof final,"3є em spree: %s com %d assassinatos\n",DOF2_GetString(f,"Spree3Name"),DOF2_GetString(f,"Spree3"));
            }
        }
    }
    return final;
}
stock GetName(playerid)
{
    new 
name[24];
    
GetPlayerName(playerid,name,24);
    return 
name;
}
 
stock GetCargo(playerid)
{
    new 
adm[15];
    switch(
Player[playerid][admin])
    {
        case 
1adm "Novato";
        case 
2adm "Intermediбrio";
        case 
3adm "Veterano";
        case 
10adm "Master";
        case 
11adm "Dono";
    }
    return 
adm;

E o problema й o seguinte... Comprei uma VPS Linux, e quando hospedo este GM dentro dela, o comando /GMX nгo reinicia o servidor, ele aparece a mensagem que й dada antes de reiniciar, mas nгo reinicia.
E o outro problema, й que as mensagens do servidor comeзam a floodar e sou kickado automaticamente do servidor, e quando vou conferir no CHATLOG aparece este erro:

PHP код:
Warningclient exceeded 'messageholelimit' (1177.103.104.54:62070 (3955Limit3000
Incoming connection
177.103.104.54:55145
Kicking 177.103.104.54 because they didn
't logon to the game. 
MEU SERVER.CFG

PHP код:
echo Executing Server Config...
lanmode 0
rcon_password 123456789
maxplayers 30
port 7777
hostname Meu Host
gamemode0 hard
filterscripts clan antflood headgun
plugins sscanf
.so fixes2.so streamer.so
announce 1
query 1
weburl www
.sa-mp.com.br
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 10
logtimeformat 
[%H:%M:%S]
messageholelimit 3000 
Jб fiz de tudo.
Jб coloquei os plugins corretos >> sscanf.so streamer.so fixes2.so
Jб troquei de plugins, jб adicionei isto no server.cfg > messageholelimit 3000 < mas nгo adianta nada, e nгo existe nenhum santo pra me ajudar, paguei muito caro nesta VPS, e pra comprar uma Windows й foda.
E quando hospedo este GM aqui em casa, ou em uma VPS Windows ele funfa sem nenhum problema.

Por favor, quero muito a ajuda de vocкs...
Fico no aguardo.
Abraзos...
Reply
#2

Troca os plugins para Linux baixe eles nos topicos originais.
Reply
#3

Olб.

Jб fiz isso.
Nгo adiantou nada...
O comando /GMX continua nгo reiniciando o servidor.
E as mensagens randфmicas continuam floodando, e sou kickado do servidor.
Nгo existe outra forma de arrumar isso ? Por que na VPS Windows ele funciona perfeitamente.

Aguardando...
Reply
#4

deu CHMOD 777 nos arquivos do servidor?
Reply
#5

Quote:
Originally Posted by GabrielDias_Invision
Посмотреть сообщение
deu CHMOD 777 nos arquivos do servidor?
#EDIT: Sim, acabei de fazer isso, e nгo funciona do mesmo jeito.
Aguardando..
Reply
#6

Retire o plugin fixes2.. Esse plugin e mt bugado, lembro de ter usado e bugava tudo em Linux.
Reply
#7

Quote:
Originally Posted by Nickvj7
Посмотреть сообщение
Retire o plugin fixes2.. Esse plugin e mt bugado, lembro de ter usado e bugava tudo em Linux.
Olб.
Jб tirei esse Plugin, mas mesmo assim, achei o erro dos FLOOD das mensagens randфmicas....
O comando GMX estб bugando... E quando muda de ROUND o GMX faz com que o servidor comece a floodar tudo... Bom, achei este erro, porquк quando eu logo e dou GMX ele buga, agora quando eu logo e nгo dou GMX ele funciona perfeitamente.
Olhe o cуdigo do GMX, e me ajudam em o que fazer.
Abraзos...
Reply
#8

Bom, aparentemente esta tudo normal no "gmx", por acaso usa fs? Pois o GMX renicia apenas o gamemode, e buga os fs..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)