Advertisement
Guest User

VitorMarfioso DM Simples

a guest
May 18th, 2012
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 19.16 KB | None | 0 0
  1. #include <a_samp>
  2. //====================Cores==========================
  3. #define VERDE                   0x33AA33AA
  4. #define AQUA                    0x7CFC00AA
  5. #define BRUNO                   0x999900AA
  6. #define AZUL                    0x1823FFAA
  7. #define BRANCO                  0xF8FDFFAA
  8. #define ROSA                    0xF208FFAA
  9. #define PRETO                   0x000000AA
  10. #define VERMELHO                0xF80000AA
  11. #define AMARELO                 0xFFFF68AA
  12. #define AZULCLARO               0x00E8E8AA
  13. #define VERDECLARO              0x00E000AA
  14. #define LARANJA                 0xFF8420AA
  15. #define LIGHTGREEN              0x38FF06FF
  16. #define DARKPINK                0xE100E1FF
  17. #define DARKGREEN               0x008040FF
  18. #define ANNOUNCEMENT            0x6AF7E1FF
  19. #define COLOR_SYSTEM            0xEFEFF7AA
  20. #define GREY                    0xCECECEFF
  21. #define PINK                    0xD52DFFFF
  22. #define DARKGREY                0x626262FF
  23. #define AQUAGREEN               0x03D687FF
  24. #define NICESKY                 0x99FFFFAA
  25. #define WHITE                   0xFFFFFFFF
  26. #define PLAYER_COLOR            0xFFFFFFFF
  27. #define VIOLETA                 0x9955DEEE
  28. #define ROXO                    0x9E3EFFAA
  29. #define AVISO                   0xFF2F2FAA
  30. //=================================================
  31. //==================================================
  32. //#define GAMEMODE
  33. new Text:Sbv;
  34. new Text:tinfo;
  35. new Text:Name;
  36. new Text:TO;
  37. new Text:Site;
  38. new pname[MAX_PLAYER_NAME];
  39.  
  40. new Minigun[01] = {38};
  41. new Arenadm[3] = {24,26,32};
  42.  
  43. #if defined FILTERSCRIPT
  44.  
  45.  
  46. public OnFilterScriptInit()
  47. {
  48.     print("\n--------------------------------------");
  49.     print(" Vitor Marfioso [DM Simples]");
  50.     print("--------------------------------------\n");
  51.     return 1;
  52. }
  53.  
  54. public OnFilterScriptExit()
  55. {
  56.     return 1;
  57. }
  58.  
  59. #else
  60.  
  61. main()
  62. {
  63.     print("\n----------------------------------");
  64.     print(" Vitor Marfioso [DM Simples]");
  65.     print("----------------------------------\n");
  66. }
  67.  
  68. #endif
  69.  
  70. public OnGameModeInit()
  71. {
  72.     UsePlayerPedAnims();
  73.     SetGameModeText("Vitor Marfioso [DM Simples] ");
  74.     //=======================Objetos============================================
  75.     CreateObject(18450, -1428.3419189453, 477.67849731445, 19.80256652832, 0, 13.894989013672, 85.355010986328);
  76.     CreateObject(18450, -1311.9758300781, 453.18023681641, -1.1090240478516, 0, 334.1904296875, 81.380798339844);
  77.     CreateObject(3268, -1309.3732910156, 445.28945922852, 6.1875, 0, 0, 272.65997314453);
  78.     CreateObject(18450, -1197.5808105469, 410.8932800293, 8.755690574646, 0, 4.4473876953125, 134.97076416016);
  79.     CreateObject(18450, -1182.0334472656, 393.05157470703, 10.591641426086, 0, 4.4439697265625, 130.99703979492);
  80.     CreateObject(3279, -1391.5861816406, 497.48583984375, 17.234375, 0, 0, 184.60504150391);
  81.     CreateObject(1655, -1155.5112304688, 359.09783935547, 11.950117111206, 0, 0, 41.684997558594);
  82.     CreateObject(1655, -1150.6968994141, 363.52450561523, 11.956071853638, 0, 0, 41.68212890625);
  83.     CreateObject(3934, -1450.8491210938, 359.67147827148, 29.0859375, 0, 0, 0);
  84.     CreateObject(3934, -1450.5480957031, 382.65872192383, 29.0859375, 0, 0, 0);
  85.     CreateObject(3934, -1451.2889404297, 415.85092163086, 29.0859375, 0, 0, 0);
  86.     CreateObject(3934, -1416.6138916016, 357.49276733398, 29.0859375, 0, 0, 0);
  87.     CreateObject(3934, -1416.1586914063, 388.41448974609, 29.0859375, 0, 0, 0);
  88.     CreateObject(3934, -1421.8540039063, 415.07638549805, 29.0859375, 0, 0, 0);
  89.     CreateObject(3934, -1380.9775390625, 358.68463134766, 29.0859375, 0, 0, 0);
  90.     CreateObject(3934, -1379.4080810547, 394.8591003418, 29.0859375, 0, 0, 0);
  91.     CreateObject(3934, -1376.7775878906, 423.93609619141, 29.0859375, 0, 0, 0);
  92.     CreateObject(6976, -1468.3569335938, 395.91418457031, 32.3359375, 0, 0, 182.62005615234);
  93.     CreateObject(6976, -1506.3311767578, 375.27651977539, 44.3125, 0, 0, 267.9697265625);
  94.     CreateObject(3934, -1503.0091552734, 397.72796630859, 41.3125, 0, 0, 0);
  95.     CreateObject(3934, -1504.609375, 429.12115478516, 41.3125, 0, 0, 0);
  96.     CreateObject(3934, -1495.4720458984, 308.36373901367, 52.4609375, 0, 0, 0);
  97.     CreateObject(3934, -1495.9757080078, 338.08770751953, 52.458656311035, 0, 0, 0);
  98.     CreateObject(3934, -1534.2924804688, 338.98196411133, 52.4609375, 0, 0, 0);
  99.     CreateObject(3934, -1537.3074951172, 311.08715820313, 52.4609375, 0, 0, 0);
  100.     CreateObject(3434, -1485.4753417969, 395.34088134766, 56.64998626709, 0, 0, 81.385009765625);
  101.     CreateObject(1634, -1425.9741210938, 460.30068969727, 25.109031677246, 13.894989013672, 0, 176.6650390625);
  102.     CreateObject(1634, -1429.8804931641, 460.67730712891, 24.932134628296, 13.892211914063, 0, 176.66015625);
  103.     CreateObject(1634, -1434.1350097656, 460.17071533203, 25.886932373047, 13.892211914063, 0, 176.66015625);
  104.    //===================================Fim dos objtos======================================================
  105.    //======================================drop=================================
  106.     CreateObject(8040,3765.612,-1877.323,1799.874,0.0,0.0,180.000);
  107.     CreateObject(18450,3691.241,-1877.027,1778.758,0.0,-30.080,0.0);
  108.     CreateObject(18450,3626.156,-1876.962,1741.048,0.0,-30.080,0.0);
  109.     CreateObject(18450,3557.563,-1876.949,1701.284,0.0,-30.080,0.0);
  110.     CreateObject(18450,3491.165,-1876.956,1657.315,0.0,-36.956,0.0);
  111.     CreateObject(18450,3427.323,-1876.966,1609.275,0.0,-36.956,0.0);
  112.     CreateObject(18450,3357.464,-1876.958,1574.192,0.0,-16.329,0.0);
  113.     CreateObject(18450,3395.242,-1876.944,1588.339,0.0,-27.502,0.0);
  114.     CreateObject(18450,3283.363,-1876.941,1545.641,0.0,-25.783,0.0);
  115.     CreateObject(18450,3212.075,-1876.954,1511.194,0.0,-25.783,0.0);
  116.     CreateObject(18450,3176.446,-1876.957,1493.982,0.0,-25.783,0.0);
  117.     CreateObject(18450,3140.744,-1876.964,1476.936,0.0,-18.048,0.0);
  118.     CreateObject(18450,3141.846,-1876.992,1478.626,0.0,-21.486,0.0);
  119.     CreateObject(18450,3068.325,-1877.011,1444.564,0.0,-30.080,0.0);
  120.     CreateObject(18450,3002.223,-1877.019,1400.063,0.0,-37.815,0.0);
  121.     CreateObject(18450,2939.394,-1877.009,1351.302,0.0,-37.815,0.0);
  122.     CreateObject(18450,2878.147,-1877.007,1303.761,0.0,-37.815,0.0);
  123.     CreateObject(18450,2816.449,-1877.016,1255.876,0.0,-37.815,0.0);
  124.     CreateObject(18450,2761.629,-1877.025,1213.324,0.0,-37.815,0.0);
  125.     CreateObject(18450,2701.657,-1877.017,1160.716,0.0,-44.691,0.0);
  126.     CreateObject(18450,2646.906,-1877.007,1106.543,0.0,-44.691,0.0);
  127.     CreateObject(18450,2591.467,-1876.998,1051.681,0.0,-44.691,0.0);
  128.     CreateObject(18450,2534.942,-1876.976,995.709,0.0,-44.691,0.0);
  129.     CreateObject(18450,2481.326,-1876.987,936.743,0.0,-50.707,0.0);
  130.     CreateObject(18450,2432.500,-1876.998,877.052,0.0,-50.707,0.0);
  131.     CreateObject(18450,2383.269,-1876.983,816.874,0.0,-50.707,0.0);
  132.     CreateObject(18450,2337.084,-1876.981,751.933,0.0,-58.442,0.0);
  133.     CreateObject(18450,2297.643,-1876.982,687.719,0.0,-58.442,0.0);
  134.     CreateObject(18450,2256.316,-1876.974,620.429,0.0,-58.442,0.0);
  135.     CreateObject(18450,2216.011,-1876.988,554.791,0.0,-58.442,0.0);
  136.     CreateObject(18450,2177.145,-1877.013,491.509,0.0,-58.442,0.0);
  137.     CreateObject(18450,2141.771,-1877.048,420.242,0.0,-68.755,0.0);
  138.     CreateObject(18450,2113.308,-1877.051,346.987,0.0,-68.755,0.0);
  139.     CreateObject(18450,2085.731,-1877.046,276.045,0.0,-68.755,0.0);
  140.     CreateObject(18450,2058.108,-1877.063,204.959,0.0,-68.755,0.0);
  141.     CreateObject(18450,2030.834,-1877.064,134.747,0.0,-68.755,0.0);
  142.     CreateObject(18450,2003.157,-1877.058,63.577,0.0,-68.755,0.0);
  143.     CreateObject(18450,1990.246,-1877.062,33.884,0.0,-18.048,0.0);
  144.     CreateObject(18450,1989.127,-1877.065,37.310,0.0,-41.253,0.0);
  145.     CreateObject(18450,1963.068,-1877.068,26.964,0.0,2.578,0.0);
  146.     CreateObject(18450,1968.747,-1877.086,28.383,0.0,-12.032,0.0);
  147.     CreateObject(18450,1992.916,-1877.086,42.161,0.0,-46.410,0.0);
  148.     CreateObject(1225,1925.809,-1883.917,29.594,0.0,0.0,0.0);
  149.     CreateObject(1225,1925.396,-1877.178,29.410,0.0,0.0,0.0);
  150.     CreateObject(1225,1925.444,-1873.733,29.408,0.0,0.0,0.0);
  151.     CreateObject(1225,1925.214,-1871.556,29.418,0.0,0.0,0.0);
  152.     CreateObject(1225,1925.591,-1873.847,29.401,0.0,0.0,0.0);
  153.     CreateObject(1225,1925.936,-1874.487,29.386,0.0,0.0,0.0);
  154.     CreateObject(1225,1925.547,-1875.452,29.403,0.0,0.0,0.0);
  155.     CreateObject(1225,1925.338,-1876.663,29.413,0.0,0.0,0.0);
  156.     CreateObject(1225,1925.197,-1877.947,29.419,0.0,0.0,0.0);
  157.     CreateObject(1225,1925.157,-1878.592,29.421,0.0,0.0,0.0);
  158.     CreateObject(1225,1924.971,-1879.234,29.429,0.0,0.0,0.0);
  159.     CreateObject(1225,1924.990,-1880.472,29.428,0.0,0.0,0.0);
  160.     CreateObject(1225,1925.034,-1881.187,29.426,0.0,0.0,0.0);
  161.     CreateObject(1225,1925.333,-1881.613,29.615,0.0,0.0,0.0);
  162.     CreateObject(1225,1925.408,-1882.252,29.612,0.0,0.0,0.0);
  163.     CreateObject(1225,1925.131,-1882.688,29.624,0.0,0.0,0.0);
  164.     CreateObject(1225,1925.319,-1883.185,30.216,0.0,0.0,0.0);
  165.     CreateObject(1225,1925.438,-1874.419,29.408,0.0,0.0,0.0);
  166.     CreateObject(1225,1925.038,-1872.733,29.426,0.0,0.0,0.0);
  167.     CreateObject(1225,1924.561,-1870.495,29.448,0.0,0.0,0.0);
  168.     CreateObject(1225,1924.040,-1871.229,29.471,0.0,0.0,0.0);
  169.     CreateObject(1225,1925.616,-1872.229,29.400,0.0,0.0,0.0);
  170.     CreateObject(1225,1925.448,-1876.002,29.408,0.0,0.0,0.0);
  171.     CreateObject(1225,1925.872,-1872.929,29.389,0.0,0.0,0.0);
  172.     CreateObject(1225,1925.263,-1875.015,29.416,0.0,0.0,0.0);
  173.     CreateObject(1225,1925.310,-1877.634,29.996,0.0,0.0,0.0);
  174.     CreateObject(1225,1925.025,-1879.365,29.860,0.0,0.0,0.0);
  175.     CreateObject(1225,1924.819,-1879.769,29.436,0.0,0.0,0.0);
  176.     CreateObject(1225,1924.690,-1871.286,29.442,0.0,0.0,0.0);
  177.     CreateObject(1225,1925.389,-1881.350,30.059,0.0,0.0,0.0);
  178.     CreateObject(1225,1925.243,-1882.275,29.619,0.0,0.0,0.0);
  179.     CreateObject(1225,1925.339,-1882.917,29.615,0.0,0.0,0.0);
  180.     CreateObject(1225,1925.860,-1883.276,30.192,0.0,0.0,0.0);
  181.     CreateObject(1225,1907.538,-1887.584,17.022,0.0,0.0,0.0);
  182.     CreateObject(1225,1906.827,-1888.134,16.705,0.0,0.0,0.0);
  183.     CreateObject(1225,2901.744,-1881.111,1322.915,0.0,0.0,0.0);
  184.     CreateObject(1225,3163.084,-1872.661,1488.315,0.0,0.0,0.0);
  185.     CreateObject(1225,3523.917,-1880.023,1682.599,0.0,0.0,0.0);
  186.     CreateObject(18450,1981.957,-1877.087,34.200,0.0,-28.361,0.0);
  187.     AddPlayerClass(287,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  188.     AddPlayerClass(299,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  189.     AddPlayerClass(0,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  190.     AddPlayerClass(255,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  191.     AddPlayerClass(254,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  192.     AddPlayerClass(179,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  193.     AddPlayerClass(165,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  194.     AddPlayerClass(29,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  195.     AddPlayerClass(28,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  196.     AddPlayerClass(23,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  197.     AddPlayerClass(16,-1425.0354,491.3673,18.2344,1.7460,0,0,0,0,0,0);
  198.  
  199. //==========================veiculos=========================================
  200.     AddStaticVehicle(429,-1442.8058,507.4969,18.9556,271.8424,0,0); // veiculocarro
  201.     AddStaticVehicle(520,-1460.4584,496.0816,19.2033,272.5295,0,0); // veiculohydra
  202.     AddStaticVehicle(520,-1461.1918,506.8601,19.2699,271.1838,0,0); // veiculohydra
  203.     AddStaticVehicle(425,-1575.9076,62.5023,17.3281,315.0667,0,0); // veiculohunter
  204.     AddStaticVehicle(425,-1565.0803,50.7193,17.3281,315.6933,0,0); // veiculohunter
  205.     AddStaticVehicle(425,-1577.5409,39.0016,17.3281,313.3550,0,0); // veiculohunter
  206.     AddStaticVehicle(426,-1590.2859,50.6433,17.3281,316.3199,0,0); // veiculocarro
  207.  
  208.     return 1;
  209. }
  210.  
  211. public OnGameModeExit()
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnPlayerRequestClass(playerid, classid)
  217. {
  218.     SetPlayerInterior(playerid,0);
  219.     SetPlayerFacingAngle(playerid, 90.0);
  220.     SetPlayerPos(playerid,1680.6910,1448.6178,47.7813);
  221.     SetPlayerCameraPos(playerid,1677.5505,1447.6898,47.7780);
  222.     SetPlayerCameraLookAt(playerid,1680.6910,1448.6178,47.7813);
  223.     return 1;
  224. }
  225.  
  226. public OnPlayerRequestSpawn(playerid)
  227. {
  228.     return 1;
  229. }
  230.  
  231. public OnPlayerConnect(playerid)
  232. {
  233.     PlayerPlaySound(playerid,1097, 0.0, 0.0, 0.0);
  234.     SendClientMessage(playerid, VERMELHO,"{1E90FF}Bem vindo ao {FF0000}Vitor Marfioso [DM Simples]");
  235.     SendClientMessage(playerid, VERMELHO,"{1E90FF}Se precisar de ajuda digite {FF0000}/ajuda.");
  236.     SendClientMessage(playerid, VERMELHO,"{54FF9F}==========================================");
  237.     SendClientMessage(playerid, BRUNO,"{0000FF}Gamemode de DM Feito Por {FF0000}Vitor Marfioso, para estudos");
  238.     SendClientMessage(playerid, BRUNO,"{54FF9F}==========================================");
  239.     TextDrawShowForPlayer(playerid, Sbv);
  240.     TextDrawShowForPlayer(playerid, tinfo);
  241.     TextDrawShowForPlayer(playerid, Name);
  242.     TextDrawShowForPlayer(playerid, Site);
  243.     TextDrawShowForPlayer(playerid, TO);
  244.     new string[40];
  245.     new pName[25];
  246.     GetPlayerName(playerid, pName, sizeof(pName));
  247.     format(string, sizeof(string), "{A2B5CD}%s Entrou no Servidor!", pName);
  248.     SendClientMessageToAll(BRUNO, string);
  249.     return 1;
  250. }
  251.  
  252. public OnPlayerDisconnect(playerid, reason)
  253. {
  254.     new pName[MAX_PLAYER_NAME];
  255.     new string[40];
  256.     GetPlayerName(playerid, pName, sizeof(pName));
  257.     format(string, sizeof(string), "{A2B5CD}%s Saiu do Servidor! ", pName);
  258.     SendClientMessageToAll(BRUNO, string);
  259.     return 1;
  260. }
  261.  
  262. public OnPlayerSpawn(playerid)
  263. {
  264.     GivePlayerWeapon(playerid, 31, 999);//31 = M4, 999= Munição
  265.     GivePlayerWeapon(playerid, 32, 999);//32 = Tec9 (Metralhadora)
  266.     GivePlayerWeapon(playerid, 25, 999);//25 = Desert Eagle
  267.     GivePlayerWeapon(playerid, 34, 999);//34 = Sniper
  268.     GivePlayerWeapon(playerid, 16, 999);//16 = Granada
  269.     return 1;
  270. }
  271.  
  272. public OnPlayerDeath(playerid, killerid, reason)
  273. {
  274.     GameTextForPlayer(playerid,"~R~FOI ABATIDO",4000,5);
  275.     return 1;
  276. }
  277.  
  278. public OnVehicleSpawn(vehicleid)
  279. {
  280.     return 1;
  281. }
  282.  
  283. public OnVehicleDeath(vehicleid, killerid)
  284. {
  285.     return 1;
  286. }
  287.  
  288. public OnPlayerText(playerid, text[])
  289. {
  290.     return 1;
  291. }
  292.  
  293. public OnPlayerCommandText(playerid, cmdtext[])
  294. {
  295.     new idx;
  296.     new cmd[256];
  297.     new string[256];
  298.  
  299.     cmd = strtok(cmdtext, idx);
  300.  
  301.     if(strcmp(cmd, "/ajuda", true) == 0) {
  302.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/gareo {33FF00}(Para ver Os Menus Aereos)");
  303.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/x1 {33FF00}(Para ir Arena x1)");
  304.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/Minigun {33FF00}(Para Ir Arenda de Minigun.)");
  305.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/Arenadm {33FF00}(Para Ir Arenda DM)");
  306.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/Drop {33FF00}(Para ir Ao Drop do Servidor)");
  307.  
  308.     return 1;
  309. }
  310.     if(strcmp(cmd, "/gareo", true) == 0) {
  311.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/Hydras {33FF00}(Para Ir A Area Hydra.)");
  312.     SendClientMessage(playerid, VERMELHO,"{FF0000}USE: {33CCFF}/Hunters {33FF00}(Para Ir A Area Hunters.");
  313.  
  314.     return 1;
  315. }
  316.     if(strcmp(cmd, "/Hydras", true) == 0)
  317.     {
  318.     SetPlayerInterior(playerid,0);
  319.     ResetPlayerWeapons(playerid);
  320.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  321.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  322.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  323.     SetPlayerArmour(playerid, 100);
  324.     SetPlayerHealth(playerid, 100);
  325.     GetPlayerName(playerid, pname, sizeof (pname));
  326.     format(string, sizeof(string),"{FFFF00}%s {FFFFFF}Foi para Area Hydra{FF0000} (/Hydras)", pname);
  327.     SendClientMessageToAll(VERMELHO, string);
  328.     GameTextForPlayer(playerid,"~g~Voce esta na Area Hydra", 3000, 5);
  329.     SetPlayerPos(playerid,-1420.5565,512.8841,18.2427);
  330.  
  331.     return 1;
  332.     }
  333.  
  334.     if  (strcmp(cmdtext,"/Hunters", true)==0)
  335.    
  336.     {
  337.     SetPlayerInterior(playerid,0);
  338.     ResetPlayerWeapons(playerid);
  339.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  340.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  341.     GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  342.     SetPlayerArmour(playerid, 100);
  343.     SetPlayerHealth(playerid, 100);
  344.     GetPlayerName(playerid, pname, sizeof (pname));
  345.     format(string, sizeof(string),"{FFFF00}%s {FFFFFF}Foi para Area Hunter{FF0000} (/Hunters)", pname);
  346.     SendClientMessageToAll(VERMELHO, string);
  347.     GameTextForPlayer(playerid,"~g~Voce esta na Area Hunter", 3000, 5);
  348.     SetPlayerPos(playerid,-1569.9683,78.5559,17.3281);
  349.  
  350.     return 1;
  351.     }
  352.     if (strcmp(cmdtext,"/x1", true)==0)
  353. {
  354. SetPlayerInterior(playerid,0);
  355. GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  356. GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  357. GivePlayerWeapon(playerid,Arenadm[random(sizeof(Arenadm))],999);
  358. GameTextForPlayer(playerid,"~g~Voce e o melhor, prove!", 3000, 5);
  359. SetPlayerPos(playerid,1537.954,-1365.666,328.487);
  360. return 1;
  361.      }
  362.     if(strcmp(cmd, "/Arenadm", true) == 0)
  363.     {
  364.     SetPlayerInterior(playerid,0);
  365.     ResetPlayerWeapons(playerid);
  366.     SetPlayerArmour(playerid, 100);
  367.     SetPlayerHealth(playerid, 100);
  368.     GetPlayerName(playerid, pname, sizeof (pname));
  369.     format(string, sizeof(string),"{FFFF00}%s {FFFFFF}Foi para Arenadm{FF0000} (/Arenadm)", pname);
  370.     SendClientMessageToAll(VERMELHO, string);
  371.     GameTextForPlayer(playerid,"~g~Voce esta na Arena Arenadm", 3000, 5);
  372.     SetPlayerPos(playerid,1024.8194, -1192.5442, 54.5666);
  373.     return 1;
  374.     }
  375.     if(strcmp(cmd, "/Minigun", true) == 0)
  376.     {
  377.     SetPlayerInterior(playerid,0);
  378.     ResetPlayerWeapons(playerid);
  379.     GivePlayerWeapon(playerid,Minigun[random(sizeof(Minigun))],10000000000);
  380.     SetPlayerArmour(playerid, 100);
  381.     SetPlayerHealth(playerid, 100);
  382.     GetPlayerName(playerid, pname, sizeof (pname));
  383.     format(string, sizeof(string),"{FFFF00}%s {FFFFFF}Foi para Arena Minigun{FF0000} (/Minigun)", pname);
  384.     SendClientMessageToAll(VERMELHO, string);
  385.     GameTextForPlayer(playerid,"~g~Voce esta na Arena Minigun", 3000, 5);
  386.     SetPlayerPos(playerid,202.6418,1911.3970,17.6406);
  387.     return 1;
  388.     }
  389.     if (strcmp("/drop", cmdtext, true, 10) == 0)
  390.     {
  391.     SetPlayerInterior(playerid,0);
  392.     SetPlayerPos(playerid, 3765.612, -1877.323, 1799.874);
  393.     GameTextForPlayer(playerid,"~g~Voce esta no Drop", 3000, 5);
  394.     SetVehiclePos(playerid, 3765.612, -1877.323, 1799.874);
  395.     format(string, sizeof(string),"{FFFF00}%s {FFFFFF}Foi para o Drop{FF0000} (/Drop)", pname);
  396.     SendClientMessageToAll(VERMELHO, string);
  397.     SetPlayerFacingAngle(playerid,2);
  398.     return 1;
  399.     }
  400.  
  401.     return 0;
  402. }
  403. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  404. {
  405.     return 1;
  406. }
  407.  
  408. public OnPlayerExitVehicle(playerid, vehicleid)
  409. {
  410.     return 1;
  411. }
  412.  
  413. public OnPlayerStateChange(playerid, newstate, oldstate)
  414. {
  415.     return 1;
  416. }
  417.  
  418. public OnPlayerEnterCheckpoint(playerid)
  419. {
  420.     return 1;
  421. }
  422.  
  423. public OnPlayerLeaveCheckpoint(playerid)
  424. {
  425.     return 1;
  426. }
  427.  
  428. public OnPlayerEnterRaceCheckpoint(playerid)
  429. {
  430.     return 1;
  431. }
  432.  
  433. public OnPlayerLeaveRaceCheckpoint(playerid)
  434. {
  435.     return 1;
  436. }
  437.  
  438. public OnRconCommand(cmd[])
  439. {
  440.     return 1;
  441. }
  442.  
  443. public OnObjectMoved(objectid)
  444. {
  445.     return 1;
  446. }
  447.  
  448. public OnPlayerObjectMoved(playerid, objectid)
  449. {
  450.     return 1;
  451. }
  452.  
  453. public OnPlayerPickUpPickup(playerid, pickupid)
  454. {
  455.     return 1;
  456. }
  457.  
  458. public OnPlayerSelectedMenuRow(playerid, row)
  459. {
  460.     return 1;
  461. }
  462.  
  463. public OnPlayerExitedMenu(playerid)
  464. {
  465.     return 1;
  466. }
  467.  
  468. strtok(const string[], &index)
  469. {
  470.     new length = strlen(string);
  471.     while ((index < length) && (string[index] <= ' '))
  472.     {
  473.         index++;
  474.     }
  475.  
  476.     new offset = index;
  477.     new result[20];
  478.     while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  479.     {
  480.         result[index - offset] = string[index];
  481.         index++;
  482.     }
  483.     result[index - offset] = EOS;
  484.     return result;
  485. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement