Guest User

Untitled

a guest
Jan 5th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 11.17 KB | None | 0 0
  1. //Includes
  2. #include <a_samp>
  3. //Gangues(Times)
  4. #define Terrorista 1
  5. #define PMilitar 2
  6. //Cores
  7. #define amarelo 0xFFFF00AA
  8. #define verde 0x33FF33AA
  9. #define vermelho 0xFF0000AA
  10. #define vermelhoescuro 0xAA3333AA
  11. #define branco 0xFFFFFFAA
  12. #define rosa 0xCCFF00FFAA
  13. #define azul 0x057ABDAA
  14. #define cinza 0xC0C0C0AA
  15. #define roxo 0x9900FFAA
  16. #define laranja 0xFFA500AA
  17. //Dicas
  18. #define MSGD1 "Dica 1"
  19. #define MSGD2 "Dica 2"
  20. #define MSGD3 "Dica 3"
  21. #define MSGD4 "Dica 4"
  22. #define MSGD5 "Dica 5"
  23. #define MSGD6 "Dica 6"
  24. #define MSGD7 "Dica 7"
  25. #define MSGD8 "Dica 8"
  26. #define MSGD9 "Dica 9"
  27. //Propagandas
  28. #define MSGP1 "Propaganda 1"
  29. #define MSGP2 "Propaganda 2"
  30. #define MSGP3 "Propaganda 3"
  31. #define MSGP4 "Propaganda 4"
  32. #define MSGP5 "Propaganda 5"
  33. #define MSGP6 "Propaganda 6"
  34. #define MSGP7 "Propaganda 7"
  35. #define MSGP8 "Propaganda 8"
  36. #define MSGP9 "Propaganda 9"
  37. //Tempo em que as propagandas são enviadas
  38. #define TempoP
  39. //Não mecha aqui!
  40. new Gang[MAX_PLAYERS];
  41. //Inicio do script
  42.  
  43.  
  44. main()
  45. {
  46.     print("\n----------------------------------");
  47.     print(" GMSEMNOMEE Brasil GM by joao0945!");
  48.     print("----------------------------------\n");
  49. }
  50.  
  51.  
  52. public OnGameModeInit()
  53. {
  54.     SetGameModeText("GM em criação");
  55.     AddPlayerClass(269,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 1
  56.     AddPlayerClass(270,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 2
  57.     AddPlayerClass(271,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 3
  58.     AddPlayerClass(293,-1324.0948,497.2354,11.1953,137.1467,30,9999,18,9999,17,9999); // Terrorista - Granadas 1
  59.     AddPlayerClass(285,-1635.2257,666.7910,7.1875,263.7441,31,9999,32,9999,23,9999); // Policia Militar - Assault 1
  60.     AddPlayerClass(287,-1635.2257,666.7910,7.1875,263.7441,31,9999,32,9999,23,9999); // Policia Militar - Assault 2
  61.     AddPlayerClass(294,-1635.2257,666.7910,7.1875,263.7441,31,9999,17,9999,10,9999); // Policia Militar - Granadas 1
  62.     // Gang Zones //
  63.     GangZoneCreate(-1624.74645, -553.752535, -1247.464503, -273.833671); // Terroristas
  64.     GangZoneCreate(-1770.791075, -505.070994, -1612.576065, -371.196755); // Polícia Militar
  65.     return 1;
  66. }
  67.  
  68. public OnGameModeExit()
  69. {
  70.     return 1;
  71. }
  72.  
  73. public OnPlayerRequestClass(playerid, classid)
  74. {
  75.     switch(GetPlayerSkin(playerid))
  76.     {
  77.         case 269,270,271,293:
  78.         {
  79.             Gang[playerid] = Terrorista;
  80.             GameTextForPlayer(playerid,"Terroristas",6000,6);
  81.         }
  82.         case 285,287,294:
  83.         {
  84.             Gang[playerid] = PMilitar;
  85.             GameTextForPlayer(playerid,"Policia Militar",6000,6);
  86.         }
  87.     }
  88.     return 1;
  89. }
  90.  
  91.  
  92. public OnPlayerConnect(playerid)
  93. {
  94.     SetPlayerPos(playerid, -1477.8722,430.3766,7.1875);
  95.     SetPlayerCameraPos(playerid, -1470.0879,430.0135,7.1875);
  96.     SetPlayerCameraLookAt(playerid, -1477.8722,430.3766,7.1875);
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerDisconnect(playerid, reason)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerSpawn(playerid)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnPlayerDeath(playerid, killerid, reason)
  111. {
  112.     SetPlayerWantedLevel(killerid, 1);
  113.     SetPlayerWantedLevel(playerid, 0);
  114.     SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
  115.     SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
  116.     SendClientMessage(playerid,laranja,"Você morreu, perdeu o seu killstreak :(");
  117.     SendClientMessage(killerid, azul, "Você matou e ganhou 1 ponto de Killstreak!");
  118.     return 1;
  119. }
  120.  
  121. public OnVehicleSpawn(vehicleid)
  122. {
  123.     return 1;
  124. }
  125.  
  126. public OnVehicleDeath(vehicleid, killerid)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnPlayerText(playerid, text[])
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnPlayerCommandText(playerid, cmdtext[])
  137. {
  138.     if (strcmp("/creditos", cmdtext, true, 10) == 0)
  139.     {
  140.         SendClientMessage(playerid,verde,"Creditos:");
  141.         SendClientMessage(playerid,verde,"joao0945 - Gamemode,códigos e etc...");
  142.         //SendClientMessage(playerid,verde,"Favor não me xingar caso não goste do GM,sou iniciante :)");
  143.         return 1;
  144.     }
  145.     if (strcmp("/kits", cmdtext, true, 10) == 0)
  146.     {
  147.         SendClientMessage(playerid,cinza,"Kits:");
  148.         SendClientMessage(playerid,verde,"Kit 01: Knife,Ak-47,Colete,Desert Eagle,Micro Uzi - /kit01 $1000");
  149.         SendClientMessage(playerid,amarelo,"Kit 02: Katana,M16A4,Colete,Tec9,Desert Eagle - /kit02 $2000");
  150.         SendClientMessage(playerid,laranja,"Kit 03: MotoSerra,M16A4,Colete,Tec9,Desert Eagle,FlameTrower - /kit03 $5000");
  151.         SendClientMessage(playerid,vermelho,"Kit 04: MotoSerra,M16A4,Flametrower,Tec9,Desert Eagle,Shotgun - /kit04 $7500");
  152.         SendClientMessage(playerid,vermelhoescuro,"Kit 05: MotoSerra,M16A4,Minigun,Tec9,Desert Eagle,Shotgun - /kit05 $10500");
  153.         SendClientMessage(playerid,azul,"Futuramente mais kits e melhor 'distribuição' das armas");
  154.         return 1;
  155.     }
  156.     if (strcmp("/ajuda", cmdtext, true, 10) == 0)
  157.     {
  158.         SendClientMessage(playerid,verde,"/creditos - Mostra os créditos");
  159.         SendClientMessage(playerid,verde,"/comprararmas - Compre armas");
  160.         SendClientMessage(playerid,verde,"/ajuda - O que você esta lendo agora");
  161.         return 1;
  162.     }
  163.     if(strcmp("/sematar", cmdtext, true) == 0)
  164.     {
  165.         SetPlayerHealth(playerid, 0);
  166.         SendClientMessage(playerid,vermelhoescuro,"Você se matou!");
  167.         return 1;
  168.     }
  169.     if(strcmp("/consertar", cmdtext, true) == 0)
  170.     {
  171.         SetVehicleHealth(playerid,100);
  172.         SendClientMessage(playerid,verde,"Carro consertado com sucesso.");
  173.         return 1;
  174.     }
  175.     //Animações
  176.     if(strcmp("/renderse", cmdtext, true) == 0)
  177.     {
  178.         SetPlayerSpecialAction(playerid, 10);
  179.         return 1;
  180.     }
  181.     if(strcmp("/ligar", cmdtext, true) == 0)
  182.     {
  183.         SetPlayerSpecialAction(playerid, 11);
  184.         return 1;
  185.     }
  186.     if(strcmp("/desligar", cmdtext, true) == 0)
  187.     {
  188.         SetPlayerSpecialAction(playerid, 13);
  189.         return 1;
  190.     }
  191.     if(strcmp("/bebado", cmdtext, true) == 0)
  192.     {
  193.         ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
  194.         return 1;
  195.     }
  196.     if(strcmp("/bomba", cmdtext, true) == 0)
  197.     {
  198.         ClearAnimations(playerid);
  199.         ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  200.         return 1;
  201.     }
  202.     if(strcmp("/apontar", cmdtext, true) == 0)
  203.     {
  204.         ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
  205.         return 1;
  206.     }
  207.     if(strcmp("/merda", cmdtext, true) == 0)
  208.     {
  209.         ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
  210.         return 1;
  211.     }
  212.     if(strcmp("/mascararse", cmdtext, true) == 0)
  213.     {
  214.         ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
  215.         return 1;
  216.     }
  217.     if(strcmp("/roubar", cmdtext, true) == 0)
  218.     {
  219.         ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
  220.         return 1;
  221.     }
  222.     if(strcmp("/cruzarb", cmdtext, true) == 0)
  223.     {
  224.         ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  225.         return 1;
  226.     }
  227.     if(strcmp("/deitar", cmdtext, true) == 0)
  228.     {
  229.         ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
  230.         return 1;
  231.     }
  232.     if(strcmp("/abaixar", cmdtext, true) == 0)
  233.     {
  234.         ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  235.         return 1;
  236.     }
  237.     if(strcmp("/vomitar", cmdtext, true) == 0)
  238.     {
  239.         ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
  240.         return 1;
  241.     }
  242.     if(strcmp("/comer", cmdtext, true) == 0)
  243.     {
  244.         ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
  245.         return 1;
  246.     }
  247.     if(strcmp("/rap", cmdtext, true) == 0)
  248.     {
  249.         ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  250.         return 1;
  251.     }
  252.     if(strcmp("/passaramao", cmdtext, true) == 0)
  253.     {
  254.         ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
  255.         return 1;
  256.     }
  257.     if(strcmp("/cobrar", cmdtext, true) == 0)
  258.     {
  259.         ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
  260.         return 1;
  261.     }
  262.     if(strcmp("/overdose", cmdtext, true) == 0)
  263.     {
  264.         ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  265.         return 1;
  266.     }
  267.     if(strcmp("/fumar", cmdtext, true) == 0)
  268.     {
  269.         ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  270.         return 1;
  271.     }
  272.     if(strcmp("/fumar2", cmdtext, true) == 0)
  273.     {
  274.         ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
  275.         return 1;
  276.     }
  277.     if(strcmp("/sentar", cmdtext, true) == 0)
  278.     {
  279.         ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  280.         return 1;
  281.     }
  282.     if(strcmp("/conversar", cmdtext, true) == 0)
  283.     {
  284.         ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
  285.         return 1;
  286.     }
  287.     if(strcmp("/fodase", cmdtext, true) == 0)
  288.     {
  289.         ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
  290.         return 1;
  291.     }
  292.     if(strcmp("/taichi", cmdtext, true) == 0)
  293.     {
  294.         ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
  295.         return 1;
  296.     }
  297.     if(strcmp("/observar", cmdtext, true) == 0)
  298.     {
  299.         ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
  300.         return 1;
  301.     }
  302.     //Lista de animações
  303.     if(strcmp("/animes", cmdtext, true) == 0)
  304.     {
  305.         SendClientMessage(playerid, verde, "Lista de animações:");
  306.         SendClientMessage(playerid, azul, "/renderse /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
  307.         SendClientMessage(playerid, azul, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
  308.         SendClientMessage(playerid, azul, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
  309.         SendClientMessage(playerid, azul, "/observar ");
  310.         return 1;
  311.     }
  312.     return 0;
  313. }
  314.  
  315. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  316. {
  317.     return 1;
  318. }
  319.  
  320. public OnPlayerExitVehicle(playerid, vehicleid)
  321. {
  322.     return 1;
  323. }
  324.  
  325. public OnPlayerStateChange(playerid, newstate, oldstate)
  326. {
  327.     return 1;
  328. }
  329.  
  330. public OnPlayerEnterCheckpoint(playerid)
  331. {
  332.     return 1;
  333. }
  334.  
  335. public OnPlayerLeaveCheckpoint(playerid)
  336. {
  337.     return 1;
  338. }
  339.  
  340. public OnPlayerEnterRaceCheckpoint(playerid)
  341. {
  342.     return 1;
  343. }
  344.  
  345. public OnPlayerLeaveRaceCheckpoint(playerid)
  346. {
  347.     return 1;
  348. }
  349.  
  350. public OnRconCommand(cmd[])
  351. {
  352.     return 1;
  353. }
  354.  
  355. public OnPlayerRequestSpawn(playerid)
  356. {
  357.     if(Gang[playerid] == Terrorista)
  358.     {
  359.         SetPlayerColor(playerid, verde);
  360.     }
  361.     else if(Gang[playerid] == PMilitar)
  362.     {
  363.         SetPlayerColor(playerid, roxo);
  364.     }
  365.     return 1;
  366. }
  367.  
  368. public OnObjectMoved(objectid)
  369. {
  370.     return 1;
  371. }
  372.  
  373. public OnPlayerObjectMoved(playerid, objectid)
  374. {
  375.     return 1;
  376. }
  377.  
  378. public OnPlayerPickUpPickup(playerid, pickupid)
  379. {
  380.     return 1;
  381. }
  382.  
  383. public OnVehicleMod(playerid, vehicleid, componentid)
  384. {
  385.     return 1;
  386. }
  387.  
  388. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  389. {
  390.     return 1;
  391. }
  392.  
  393. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  394. {
  395.     return 1;
  396. }
  397.  
  398. public OnPlayerSelectedMenuRow(playerid, row)
  399. {
  400.     return 1;
  401. }
  402.  
  403. public OnPlayerExitedMenu(playerid)
  404. {
  405.     return 1;
  406. }
  407.  
  408. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  409. {
  410.     return 1;
  411. }
  412.  
  413. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  414. {
  415.     return 1;
  416. }
  417.  
  418. public OnRconLoginAttempt(ip[], password[], success)
  419. {
  420.     return 1;
  421. }
  422.  
  423. public OnPlayerUpdate(playerid)
  424. {
  425.     return 1;
  426. }
  427.  
  428. public OnPlayerStreamIn(playerid, forplayerid)
  429. {
  430.     return 1;
  431. }
  432.  
  433. public OnPlayerStreamOut(playerid, forplayerid)
  434. {
  435.     return 1;
  436. }
  437.  
  438. public OnVehicleStreamIn(vehicleid, forplayerid)
  439. {
  440.     return 1;
  441. }
  442.  
  443. public OnVehicleStreamOut(vehicleid, forplayerid)
  444. {
  445.     return 1;
  446. }
  447.  
  448. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  449. {
  450.     return 1;
  451. }
  452.  
  453. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  454. {
  455.     return 1;
  456. }
Advertisement
Add Comment
Please, Sign In to add comment