Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:iniciargrafos(playerid,params[])
- {
- SetTimer("InicioGrafo",100,0);
- return 1;
- }
- fuction InicioGrafo(){
- new RandomGrafo = random(17);
- switch (RandomGrafo)
- {
- case 0: Disputa0();
- case 1: Disputa1();
- case 2: Disputa2();
- case 3: Disputa3();
- case 4: Disputa4();
- case 5: Disputa5();
- case 6: Disputa6();
- case 7: Disputa7();
- case 8: Disputa8();
- case 9: Disputa9();
- case 10: Disputa10();
- case 11: Disputa11();
- case 12: Disputa12();
- case 13: Disputa13();
- case 14: Disputa14();
- case 15: Disputa15();
- case 16: Disputa16();
- }
- return 1;
- }
- fuction DisputaZonaHide(){
- TextDrawHideForAll(ZonaGrafos[0]);
- TextDrawHideForAll(ZonaGrafos[1]);
- TextDrawHideForAll(ZonaGrafos[2]);
- TextDrawHideForAll(ZonaGrafos[3]);
- TextDrawHideForAll(ZonaGrafos[4]);
- TextDrawHideForAll(BandaGanadoraGrafo[0]);
- TextDrawHideForAll(BandaGanadoraGrafo[1]);
- TextDrawHideForAll(BandaGanadoraGrafo[2]);
- TextDrawHideForAll(BandaGanadoraGrafo[3]);
- TextDrawHideForAll(BandaGanadoraGrafo[4]);
- TextDrawHideForAll(AvisoGrafos1[0]);
- TextDrawHideForAll(AvisoGrafos1[1]);
- TextDrawHideForAll(AvisoGrafos1[2]);
- TextDrawHideForAll(AvisoGrafos1[3]);
- TextDrawHideForAll(AvisoGrafos1[4]);
- TextDrawHideForAll(EnMarchaGrafo);
- TextDrawHideForAll(PintandoGraffitoide[0]);
- TextDrawHideForAll(PintandoGraffitoide[1]);
- TextDrawHideForAll(PintandoGraffitoide[2]);
- TextDrawHideForAll(ConquistandoMercaoide);
- KillTimer(HideTextGra);
- return 1;
- }
- stock Disputa0(){
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo0",300000,0);
- TextDrawSetString(ZonaGrafos[3],"Zona: Glen Park");
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa1(){
- TextDrawSetString(ZonaGrafos[3],"Zona: East Los Santos");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo1",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa2(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Jefferson");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo2",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa3(){
- TextDrawSetString(ZonaGrafos[3],"Zona: East Los Santos");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo3",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa4(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Idlewood");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo4",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa5(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Willowfield");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo5",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa6(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Willowfield");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo6",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa7(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Commerce");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo7",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa8(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Glen Park");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo8",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa9(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Cruce de Mullholland");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo9",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa10(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Las Colinas");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo10",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa11(){
- TextDrawSetString(ZonaGrafos[3],"Zona: El Corona");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo11",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa12(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Verdant Bluffs");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo12",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa13(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Temple");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo13",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa14(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Dillimore");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo14",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa15(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Rodeo");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo15",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
- stock Disputa16(){
- TextDrawSetString(ZonaGrafos[3],"Zona: Blueberry");
- HideTextGra = SetTimer("DisputaZonaHide",15000,0);
- SetTimer("Graffo16",300000,0);
- for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PLAYER_CREW[i][player_crew_VALID])
- {
- TextDrawShowForPlayer(i, ZonaGrafos[0]);
- TextDrawShowForPlayer(i, ZonaGrafos[1]);
- TextDrawShowForPlayer(i, ZonaGrafos[2]);
- TextDrawShowForPlayer(i, ZonaGrafos[3]);
- TextDrawShowForPlayer(i, ZonaGrafos[4]);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement