Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Includes
- #include <a_samp>
- //Gangues(Times)
- #define Terrorista 1
- #define PMilitar 2
- //Cores
- #define amarelo 0xFFFF00AA
- #define verde 0x33FF33AA
- #define vermelho 0xFF0000AA
- #define vermelhoescuro 0xAA3333AA
- #define branco 0xFFFFFFAA
- #define rosa 0xCCFF00FFAA
- #define azul 0x057ABDAA
- #define cinza 0xC0C0C0AA
- #define roxo 0x9900FFAA
- #define laranja 0xFFA500AA
- //Dicas
- #define MSGD1 "Dica 1"
- #define MSGD2 "Dica 2"
- #define MSGD3 "Dica 3"
- #define MSGD4 "Dica 4"
- #define MSGD5 "Dica 5"
- #define MSGD6 "Dica 6"
- #define MSGD7 "Dica 7"
- #define MSGD8 "Dica 8"
- #define MSGD9 "Dica 9"
- //Propagandas
- #define MSGP1 "Propaganda 1"
- #define MSGP2 "Propaganda 2"
- #define MSGP3 "Propaganda 3"
- #define MSGP4 "Propaganda 4"
- #define MSGP5 "Propaganda 5"
- #define MSGP6 "Propaganda 6"
- #define MSGP7 "Propaganda 7"
- #define MSGP8 "Propaganda 8"
- #define MSGP9 "Propaganda 9"
- //Tempo em que as propagandas são enviadas
- #define TempoP
- //Não mecha aqui!
- new Gang[MAX_PLAYERS];
- //Inicio do script
- main()
- {
- print("\n----------------------------------");
- print(" GMSEMNOMEE Brasil GM by joao0945!");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- SetGameModeText("GM em criação");
- AddPlayerClass(269,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 1
- AddPlayerClass(270,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 2
- AddPlayerClass(271,-1324.0948,497.2354,11.1953,137.1467,30,9999,28,9999,22,9999); // Terrorista - Assault 3
- AddPlayerClass(293,-1324.0948,497.2354,11.1953,137.1467,30,9999,18,9999,17,9999); // Terrorista - Granadas 1
- AddPlayerClass(285,-1635.2257,666.7910,7.1875,263.7441,31,9999,32,9999,23,9999); // Policia Militar - Assault 1
- AddPlayerClass(287,-1635.2257,666.7910,7.1875,263.7441,31,9999,32,9999,23,9999); // Policia Militar - Assault 2
- AddPlayerClass(294,-1635.2257,666.7910,7.1875,263.7441,31,9999,17,9999,10,9999); // Policia Militar - Granadas 1
- // Gang Zones //
- GangZoneCreate(-1624.74645, -553.752535, -1247.464503, -273.833671); // Terroristas
- GangZoneCreate(-1770.791075, -505.070994, -1612.576065, -371.196755); // Polícia Militar
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- switch(GetPlayerSkin(playerid))
- {
- case 269,270,271,293:
- {
- Gang[playerid] = Terrorista;
- GameTextForPlayer(playerid,"Terroristas",6000,6);
- }
- case 285,287,294:
- {
- Gang[playerid] = PMilitar;
- GameTextForPlayer(playerid,"Policia Militar",6000,6);
- }
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SetPlayerPos(playerid, -1477.8722,430.3766,7.1875);
- SetPlayerCameraPos(playerid, -1470.0879,430.0135,7.1875);
- SetPlayerCameraLookAt(playerid, -1477.8722,430.3766,7.1875);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SetPlayerWantedLevel(killerid, 1);
- SetPlayerWantedLevel(playerid, 0);
- SetPlayerScore(killerid, GetPlayerScore(playerid) + 1);
- SetPlayerScore(playerid, GetPlayerScore(playerid) - 1);
- SendClientMessage(playerid,laranja,"Você morreu, perdeu o seu killstreak :(");
- SendClientMessage(killerid, azul, "Você matou e ganhou 1 ponto de Killstreak!");
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/creditos", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,verde,"Creditos:");
- SendClientMessage(playerid,verde,"joao0945 - Gamemode,códigos e etc...");
- //SendClientMessage(playerid,verde,"Favor não me xingar caso não goste do GM,sou iniciante :)");
- return 1;
- }
- if (strcmp("/kits", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,cinza,"Kits:");
- SendClientMessage(playerid,verde,"Kit 01: Knife,Ak-47,Colete,Desert Eagle,Micro Uzi - /kit01 $1000");
- SendClientMessage(playerid,amarelo,"Kit 02: Katana,M16A4,Colete,Tec9,Desert Eagle - /kit02 $2000");
- SendClientMessage(playerid,laranja,"Kit 03: MotoSerra,M16A4,Colete,Tec9,Desert Eagle,FlameTrower - /kit03 $5000");
- SendClientMessage(playerid,vermelho,"Kit 04: MotoSerra,M16A4,Flametrower,Tec9,Desert Eagle,Shotgun - /kit04 $7500");
- SendClientMessage(playerid,vermelhoescuro,"Kit 05: MotoSerra,M16A4,Minigun,Tec9,Desert Eagle,Shotgun - /kit05 $10500");
- SendClientMessage(playerid,azul,"Futuramente mais kits e melhor 'distribuição' das armas");
- return 1;
- }
- if (strcmp("/ajuda", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid,verde,"/creditos - Mostra os créditos");
- SendClientMessage(playerid,verde,"/comprararmas - Compre armas");
- SendClientMessage(playerid,verde,"/ajuda - O que você esta lendo agora");
- return 1;
- }
- if(strcmp("/sematar", cmdtext, true) == 0)
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid,vermelhoescuro,"Você se matou!");
- return 1;
- }
- if(strcmp("/consertar", cmdtext, true) == 0)
- {
- SetVehicleHealth(playerid,100);
- SendClientMessage(playerid,verde,"Carro consertado com sucesso.");
- return 1;
- }
- //Animações
- if(strcmp("/renderse", cmdtext, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 10);
- return 1;
- }
- if(strcmp("/ligar", cmdtext, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 11);
- return 1;
- }
- if(strcmp("/desligar", cmdtext, true) == 0)
- {
- SetPlayerSpecialAction(playerid, 13);
- return 1;
- }
- if(strcmp("/bebado", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "WALK_DRUNK", 4.0, 1, 1, 1, 1, 0);
- return 1;
- }
- if(strcmp("/bomba", cmdtext, true) == 0)
- {
- ClearAnimations(playerid);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/apontar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- if(strcmp("/merda", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/mascararse", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/roubar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/cruzarb", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
- return 1;
- }
- if(strcmp("/deitar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/abaixar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/vomitar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/comer", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/rap", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/passaramao", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/cobrar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/overdose", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fumar2", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/sentar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/conversar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/fodase", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "PED", "fucku", 4.0, 0, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/taichi", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "PARK", "Tai_Chi_Loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- if(strcmp("/observar", cmdtext, true) == 0)
- {
- ApplyAnimation(playerid, "BAR", "dnk_stndF_loop", 4.0, 1, 0, 0, 0, 0);
- return 1;
- }
- //Lista de animações
- if(strcmp("/animes", cmdtext, true) == 0)
- {
- SendClientMessage(playerid, verde, "Lista de animações:");
- SendClientMessage(playerid, azul, "/renderse /ligar /desligar /bebado /bomba /apontar /merda /mascararse");
- SendClientMessage(playerid, azul, "/roubar /cruzarb /deitar /abaixar /vomitar /comer /rap /passaramao");
- SendClientMessage(playerid, azul, "/cobrar /overdose /fumar /fumar2 /sentar /conversar /fodase /taichi");
- SendClientMessage(playerid, azul, "/observar ");
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(Gang[playerid] == Terrorista)
- {
- SetPlayerColor(playerid, verde);
- }
- else if(Gang[playerid] == PMilitar)
- {
- SetPlayerColor(playerid, roxo);
- }
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment