Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============ INCLUDES ===============//
- #include a_samp
- #include ZCMD
- //===================== DIALOGS ===============//
- #define iChuck 1
- #define iPlayer 2
- #define iDPaintball 3
- #define iPaintball 4
- #define iX1 5
- #define iMinigun 6
- #define iDx1 7
- #define iDMinigun 8
- #define iDBarco 9
- #define iBarco 10
- #define iDBate 11
- #define iBate 12
- #define iDPara 13
- #define iPara 14
- #define iEventos 6865
- //============= VARIAVEIS E ARAYS ================//
- new bool:Paintball[MAX_PLAYERS],
- EquipePlayer[MAX_PLAYERS];
- new EventoPaintball;
- new bool:x1[MAX_PLAYERS];
- new Eventox1;
- new bool:miinigun[MAX_PLAYERS];
- new EventoMinigun;
- new bool:barco[MAX_PLAYERS];
- new EventoBarco;
- new bool:bate[MAX_PLAYERS];
- new EventoBate;
- new bool:para[MAX_PLAYERS];
- new EventoPara;
- //==============================================//
- public OnFilterScriptInit()
- {
- print("\n#========================================== #");
- print(" # [FS] Sistema de Eventos #");
- print(" # By: iSmir #");
- print(" #===========================================#\n");
- //================================ MONTE X1 =============================//
- CreateObject(987, -541.20001220703, 2639.3999023438, 52.5, 0, 0, 176);
- CreateObject(987, -553.20001220703, 2640, 52.599998474121, 0, 0, 176);
- CreateObject(987, -565.09997558594, 2640.6000976563, 52.5, 0, 0, 266);
- CreateObject(987, -565.59997558594, 2632.3999023438, 52.5, 0, 0, 266);
- CreateObject(972, -2317.9733886719, -1607.8778076172, 481.92987060547, 0, 0, 5.95263671875, 300.0);
- CreateObject(972, -2333.5573730469, -1582.4885253906, 481.92987060547, 0, 0, 97.262329101563, 300.0);
- CreateObject(972, -2342.1125488281, -1607.5842285156, 481.92987060547, 0, 0, 186.58666992188, 300.0);
- CreateObject(972, -2322.4345703125, -1589.484375, 481.92987060547, 0, 0, 29.772521972656, 300.0);
- CreateObject(972, -2315.3129882813, -1634.2191162109, 481.92987060547, 0, 0, 5.95263671875, 300.0);
- CreateObject(972, -2339.2004394531, -1632.3326416016, 481.92987060547, 0, 0, 186.58703613281, 300.0);
- CreateObject(8650, -2316.6611328125, -1618.7884521484, 474.04272460938, 90, 90, 7.93994140625, 300.0);
- CreateObject(8650, -2328.5708007813, -1620.1850585938, 488.14788818359, 180, 180, 97.262329101563, 300.0);
- CreateObject(8650, -2328.5256347656, -1620.2603759766, 486.49984741211, 179.9945, 179.9945, 97.2619, 300.0);
- CreateObject(972, -2315.8947753906, -1624.5148925781, 481.92987060547, 0, 0, 5.9490966796875, 300.0);
- CreateObject(8650, -2314.5227050781, -1618.5999755859, 474.04272460938, 90, 90, 7.9376220703125, 300.0);
- CreateObject(8650, -2318.1958007813, -1618.8737792969, 474.04272460938, 90, 90, 5.9549560546875, 300.0);
- CreateObject(972, -2344.6188964844, -1584.1512451172, 481.92987060547, 0, 0, 186.58630371094, 300.0);
- CreateObject(972, -2330.990234375, -1642.7630615234, 481.92987060547, 0, 0, 275.91064453125, 300.0);
- CreateObject(972, -2325.4072265625, -1642.2864990234, 481.92987060547, 0, 0, 275.90515136719, 300.0);
- CreateObject(7657, -2333.6726074219, -1620.9918212891, 484.42767333984, 0, 0, 7.93994140625, 300.0);
- //========================================== MOTOS DO EVENTO RALLY ===================================//
- CreateVehicle(468,-2396.6487,-2194.7942,32.9527,244.9457,14,14,-1);
- CreateVehicle(468,-2397.9363,-2196.0374,32.9525,251.1160,10,0,-1);
- CreateVehicle(468,-2399.1172,-2196.9358,32.9529,253.3459,8,8,-1);
- CreateVehicle(468,-2400.7209,-2198.4172,32.9483,263.7230,1,1,-1);
- CreateVehicle(468,-2396.6289,-2194.7290,32.9359,237.7247,14,14,-1);
- CreateVehicle(468,-2397.8621,-2195.9563,32.9209,240.0725,10,0,-1);
- CreateVehicle(468,-2399.1553,-2197.2615,32.9516,268.3748,8,8,-1);
- CreateVehicle(468,-2400.7368,-2198.5469,32.9272,258.2426,1,1,-1);
- CreateVehicle(468,-2401.6670,-2199.7456,32.9394,242.1490,11,11,-1);
- CreateVehicle(468,-2402.8044,-2200.7349,32.9736,258.3496,2,2,-1);
- CreateVehicle(468,-2403.2639,-2202.2148,32.9559,287.4485,20,20,-1);
- //===================================== BARCOS DO EVENTO BARCO =================================================//
- CreateVehicle(446,167.8000031,-1902.9000244,0.0000000,180.0000000,-1,-1,15);
- CreateVehicle(446,175.6999969,-1903.5999756,0.0000000,180.0000000,132,4,15);
- CreateVehicle(446,182.1999969,-1904.0000000,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,189.0000000,-1903.9000244,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,196.1999969,-1903.3000488,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,203.1000061,-1903.1999512,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,210.1999969,-1902.6999512,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,218.1999969,-1902.4000244,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,225.0000000,-1901.6999512,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,232.8000031,-1900.9000244,0.0000000,180.0000000,245,245,15);
- CreateVehicle(446,239.1999969,-1901.3000488,0.0000000,180.0000000,-1,-1,15);
- CreateVehicle(446,246.6999969,-1900.9000244,0.0000000,180.0000000,-1,-1,15);
- //===================================== BARCOS DO EVENTO BATE - BATE =================================================//
- CreateVehicle(502,-1414.5619,1025.5784,1025.4773,182.3220,166,166,15);
- CreateVehicle(503,-1359.5602,983.3937,1023.5405,316.0204,166,166,15);
- CreateVehicle(502,-1358.1443,997.1567,1023.7653,353.0945,166,166,15);
- CreateVehicle(503,-1371.3832,1007.3936,1023.9597,74.3266,166,166,15);
- CreateVehicle(502,-1386.7108,993.1025,1023.7463,144.6641,166,166,15);
- CreateVehicle(503,-1399.7688,989.7795,1023.7100,94.7017,166,166,15);
- CreateVehicle(502,-1405.0767,974.2200,1023.7363,183.6478,166,166,15);
- CreateVehicle(503,-1390.5551,968.4815,1024.1953,265.1103,166,166,15);
- CreateVehicle(502,-1431.8761,996.1734,1023.8845,90.5452,166,166,15);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- if(Paintball[playerid] == true)
- {
- Paintball[playerid] = false;
- EquipePlayer[playerid] = 0;
- }
- if(x1[playerid] == true)
- {
- x1[playerid] = false;
- }
- if(miinigun[playerid] == true)
- {
- miinigun[playerid] = false;
- }
- if(barco[playerid] == true)
- {
- barco[playerid] = false;
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if(Paintball[playerid] == true)
- {
- if(EventoPaintball == iPaintball)
- {
- SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
- SetPlayerInterior(playerid, 10);
- if(EquipePlayer[playerid] == iPlayer)
- {
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 31, 200);
- GivePlayerWeapon(playerid, 29, 500);
- SetPlayerSkin(playerid, 158);
- }
- }
- }
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new LOL[110];
- if(x1[playerid] == true && x1[killerid] == true)
- {
- if(Eventox1 == iX1)
- {
- format(LOL, sizeof(LOL),"%s Matou %s no Evento x1 e Recebeu R$5.000 Como Recompensa !", NomeJ(killerid), NomeJ(playerid));
- SendClientMessageToAll(0xE71856FF, LOL);
- SpawnPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- GivePlayerMoney(killerid, 5000);
- SetPlayerHealth(killerid, 100);
- SetPlayerArmour(killerid, 100);
- }
- }
- if(miinigun[playerid] == true && miinigun[killerid] == true)
- {
- if(EventoMinigun == iMinigun)
- {
- format(LOL, sizeof(LOL),"%s Matou %s no Evento Minigun e Recebeu R$5.000 Como Recompensa !", NomeJ(killerid), NomeJ(playerid));
- SendClientMessageToAll(0xE71856FF, LOL);
- SpawnPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- GivePlayerMoney(killerid, 5000);
- SetPlayerHealth(killerid, 100);
- SetPlayerArmour(killerid, 100);
- }
- }
- if(Paintball[playerid] == true && Paintball[killerid] == true)
- {
- if(EventoPaintball == iPaintball)
- {
- if(EquipePlayer[killerid] == iChuck && EquipePlayer[playerid] == iPlayer)
- {
- format(LOL, sizeof(LOL),"O Chuck Norris[%s] Matou (%s) No Evento Paintball e Recebeu R$15.000!", NomeJ(killerid), NomeJ(playerid));
- SendClientMessageToAll(0xE71856FF, LOL);
- GivePlayerMoney(killerid, 15000);
- SetPlayerHealth(killerid, 100);
- SetPlayerArmour(killerid, 100);
- SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); //Posi??o de onde fica o evento Paintball
- SetPlayerInterior(playerid, 10); //Interior, caso seja em um
- }
- else if(EquipePlayer[killerid] == iPlayer && EquipePlayer[playerid] == iChuck)
- {
- EquipePlayer[killerid] = iChuck;
- EquipePlayer[playerid] = iPlayer;
- format(LOL, sizeof(LOL),"(%s) Matou o Chuck Norris[%] No Evento Paintball e Virou o Novo Chuck Norris!", NomeJ(killerid), NomeJ(playerid));
- SendClientMessageToAll(0xFFFF00FF, LOL);
- SetPlayerHealth(killerid, 100);
- SetPlayerArmour(killerid, 100);
- SetPlayerSkin(killerid, 264);
- GivePlayerWeapon(killerid, 38, 800);
- GivePlayerWeapon(killerid, 30, 200);
- GivePlayerWeapon(killerid, 24, 200);
- GivePlayerWeapon(killerid, 25, 200);
- GivePlayerWeapon(killerid, 26, 200);
- GameTextForPlayer(killerid,"~g~Chuck Norris", 2000, 1);
- SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
- SetPlayerInterior(playerid, 10);
- }
- else if(EquipePlayer[killerid] == iPlayer && EquipePlayer[playerid] == iPlayer)
- {
- format(LOL, sizeof(LOL),"%s Matou %s No Evento Paintall e Recebeu R$7.000!", NomeJ(killerid), NomeJ(playerid));
- SendClientMessageToAll(0xE71856FF, LOL);
- SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
- SetPlayerInterior(playerid, 10);
- GivePlayerMoney(killerid, 7000);
- SetPlayerHealth(killerid, 100);
- SetPlayerArmour(killerid, 100);
- }
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == iEventos) {
- if (response == 0) {
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- return true;
- }
- if (response == 1) {
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- if (listitem >= 0 && listitem <= 10) {
- if (listitem == 0)
- {
- cmd_eventopaintball(playerid);
- }
- if (listitem == 1)
- {
- cmd_eventoparaquedas(playerid);
- }
- if (listitem == 2)
- {
- cmd_eventobarco(playerid);
- }
- if (listitem == 3)
- {
- cmd_eventobatebate(playerid);
- }
- if (listitem == 4)
- {
- cmd_eventox1(playerid);
- }
- if (listitem == 5)
- {
- cmd_eventominigun(playerid);
- }
- if (listitem == 6)
- {
- cmd_terminarpaintball(playerid);
- }
- if (listitem == 7)
- {
- cmd_terminarparaquedas(playerid);
- }
- if (listitem == 8)
- {
- cmd_terminarbarco(playerid);
- }
- if (listitem == 9)
- {
- cmd_terminarbatebate(playerid);
- }
- if (listitem == 10)
- {
- cmd_terminarx1(playerid);
- }
- if (listitem == 11)
- {
- cmd_terminarminigun(playerid);
- }
- }
- }
- }
- if(dialogid == iDPara)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
- return true;
- }
- if(EventoPara == iPara)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Para - Quedas");
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100 );
- SetPlayerPos(playerid,1547.2875,-1354.7445,329.4786);
- GivePlayerWeapon(playerid, 46, 1);
- SetPlayerCheckpoint(playerid, 1497.0734, -1699.5951, 14.5469, 15.0);
- SetPlayerInterior(playerid, 0);
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && para[x] == true)
- {
- }
- }
- }
- }
- if(dialogid == iDBate)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
- return true;
- }
- if(EventoBate == iBate)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Bate - Bate");
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100 );
- SetPlayerPos(playerid,-1490.8577,991.0114,1029.1187);
- SetPlayerInterior(playerid, 15);
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && bate[x] == true)
- {
- }
- }
- }
- }
- if(dialogid == iDMinigun)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
- return true;
- }
- if(EventoMinigun == iMinigun)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Minigun");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,38, 999);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100 );
- SetPlayerPos(playerid,1081.9198,1526.9095,52.2273);
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && miinigun[x] == true)
- {
- }
- }
- }
- }
- if(dialogid == iDx1)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
- return true;
- }
- if(Eventox1 == iX1)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento x1");
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid,24, 999);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100 );
- SetPlayerPos(playerid,-2327.1162,-1632.4860,483.6996);
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && barco[x] == true)
- {
- }
- }
- }
- }
- if(dialogid == iDBarco)
- {
- if(response == 0)
- {
- SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
- return true;
- }
- if(EventoBarco == iBarco)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Barco");
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid,383.4359,-2078.8511,7.8359);
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && x1[x] == true)
- {
- }
- }
- }
- }
- if(dialogid == iDPaintball)
- {
- if(EventoPaintball == iPaintball)
- {
- if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Paintball");
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
- SetPlayerInterior(playerid, 10);
- new contar = 0;
- for(new x = 0; x < MAX_PLAYERS; x++)
- {
- if(IsPlayerConnected(x) && Paintball[x] == true)
- {
- contar ++;
- }
- }
- if(contar == 0)
- {
- SetPlayerSkin(playerid, 264);
- GivePlayerWeapon(playerid, 38, 800);
- GivePlayerWeapon(playerid, 30, 200);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 26, 200);
- SendClientMessage(playerid, 0x8080FFFF, "Você é o Primeiro a Chegar no Evento e Virou o Chuck Norris");
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Chegou Primeiro No Evento Paintball e Virou o Chuck Norris", NomeJ(playerid));
- SendClientMessageToAll(0x0080FFFF, LOL);
- EquipePlayer[playerid] = iChuck;
- }
- else if(contar > 0)
- {
- SetPlayerSkin(playerid, 158);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 31, 200);
- GivePlayerWeapon(playerid, 29, 500);
- EquipePlayer[playerid] = iPlayer;
- }
- Paintball[playerid] = true;
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2517.4395,-2273.1348,-0.4728))
- {
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, " ~w~Voce Chegou", 5000, 3);
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1497.0734, -1699.5951, 14.5469))
- {
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, " ~w~Voce Chegou", 5000, 3);
- }
- return 1;
- }
- NomeJ(playerid)
- {
- new nameplayer[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nameplayer, sizeof(nameplayer));
- return nameplayer;
- }
- CMD:eventominigun(playerid)
- {
- EventoMinigun = iMinigun;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento Minigun", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDMinigun,DIALOG_STYLE_MSGBOX,"Evento X1","Deseja ir ao Evento Minigun","Sim","Não");
- }
- return 1;
- }
- CMD:terminarminigun(playerid)
- {
- if(EventoMinigun < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- EventoMinigun = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(miinigun[i] == true)
- {
- miinigun[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:eventopaintball(playerid)
- {
- EventoPaintball = iPaintball;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento PaintBall.", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDPaintball,DIALOG_STYLE_MSGBOX,"Evento PaintBall","Deseja ir ao Evento Paintball?","Sim","Não");
- }
- return 1;
- }
- CMD:terminarpaintball(playerid)
- {
- if(EventoPaintball < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- EventoPaintball = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(Paintball[i] == true)
- {
- Paintball[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:eventox1(playerid)
- {
- Eventox1 = iX1;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento x1", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDx1,DIALOG_STYLE_MSGBOX,"Evento X1","Deseja ir ao Evento x1","Sim","Não");
- }
- return 1;
- }
- CMD:terminarx1(playerid)
- {
- if(Eventox1 < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- Eventox1 = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(x1[i] == true)
- {
- x1[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:eventobarco(playerid)
- {
- EventoBarco = iBarco;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento Barco", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDBarco,DIALOG_STYLE_MSGBOX,"Evento Barco","Deseja ir ao Evento Barco","Sim","Não");
- }
- return 1;
- }
- CMD:terminarbarco(playerid)
- {
- if(EventoBarco < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- EventoBarco = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(barco[i] == true)
- {
- barco[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:marcarlocal(playerid)
- {
- if(EventoBarco < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo O Evento Barco.");
- SetPlayerCheckpoint(playerid, 2517.4395, -2273.1348, -0.4728, 15.0);
- SendClientMessage(playerid, 0xE20526FF, "Vá Até o Local Indicado no Mapa Para Ganhar");
- return 1;
- }
- CMD:eventobatebate(playerid)
- {
- EventoBate = iBate;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento Bate - Bate", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDBate,DIALOG_STYLE_MSGBOX,"Evento Barco","Deseja ir ao Evento Bate-Bate","Sim","Não");
- }
- return 1;
- }
- CMD:terminarbatebate(playerid)
- {
- if(EventoBate < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- EventoBate = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(bate[i] == true)
- {
- bate[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:eventoparaquedas(playerid)
- {
- EventoPara = iPara;
- new LOL[80];
- format(LOL, sizeof(LOL),"%s Criou um Evento Barco", NomeJ(playerid));
- SendClientMessageToAll(0xE20526FF, LOL);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- ShowPlayerDialog(i, iDPara,DIALOG_STYLE_MSGBOX,"Evento Paraquedas","Deseja ir ao Evento Para Quedas","Sim","Não");
- }
- return 1;
- }
- CMD:terminarparaquedas(playerid)
- {
- if(EventoPara < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
- EventoBate = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(para[i] == true)
- {
- para[i] = false;
- ResetPlayerWeapons(i);
- SpawnPlayer(i);
- SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
- }
- }
- return 1;
- }
- CMD:criarevento(playerid)
- {
- ShowPlayerDialog(playerid, iEventos,DIALOG_STYLE_LIST,"Eventos","Evento Paintball\nEvento Para - Quedas\nEvento Barco\nEvento Bate - Bate\nEvento x1\nEvento Minigun\nTerminar Paintball\nTerminar Para - Quedas\nTerminar Bate - Bate\nTerminar x1\nTerminar Minigun","Criar","Não");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement