Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <DOF2>
- #include <sscanf2>
- #define FILTERSCRIPT
- #define PASTA_PERGUNTADOS "Perguntados/%s.ini" //Pasta onde guardará as informações dos jogadores
- #define MAX_PERGUNTAS 34 //Máximo de perguntas
- #define POINTS_START 100 //Pontos que o jogador começa o jogo de perguntas
- #define MINUTOS_GIVE_POINTS 15 * 60000 //Minutos para que se o jogador não tenha pontos, ganhe +25
- enum GodOfWarZero
- {
- Clickado,
- PerguntaID,
- Pontos
- }
- new Perguntas[MAX_PLAYERS][GodOfWarZero];
- new PlayerText:PergTD[MAX_PLAYERS][15];
- new TimerPointsGame[2];
- public OnFilterScriptInit()
- {
- print("\n|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|");
- print("| Jogo de Perguntas - By Rhayziin / Rhay_Fither |");
- print("|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- DOF2_Exit();
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- CreatePerguntTDs(playerid);
- if(!DOF2_FileExists(FolderPerguntados(playerid)))
- {
- DOF2_CreateFile(FolderPerguntados(playerid));
- DOF2_SetInt(FolderPerguntados(playerid), "Pontos", POINTS_START);
- DOF2_SetInt(FolderPerguntados(playerid), "PerguntaID", 0);
- Perguntas[playerid][Pontos] = POINTS_START;
- Perguntas[playerid][PerguntaID] = 0;
- }
- else
- {
- Perguntas[playerid][Pontos] = DOF2_GetInt(FolderPerguntados(playerid), "Pontos");
- Perguntas[playerid][PerguntaID] = DOF2_GetInt(FolderPerguntados(playerid), "PerguntaID");
- }
- TimerPointsGame[0] = SetTimerEx("AtualizarPontos", 1000, true, "i", playerid);
- TimerPointsGame[1] = SetTimerEx("GivePointsGame", MINUTOS_GIVE_POINTS, true, "i", playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- DOF2_SetInt(FolderPerguntados(playerid), "Pontos", Perguntas[playerid][Pontos]);
- DOF2_SetInt(FolderPerguntados(playerid), "PerguntaID", Perguntas[playerid][PerguntaID]);
- KillTimer(TimerPointsGame[0]);
- KillTimer(TimerPointsGame[1]);
- return 1;
- }
- public OnPlayerClickPlayerTextDraw ( playerid , PlayerText:playertextid )
- {
- if(_:playertextid == INVALID_TEXT_DRAW) return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);
- else if(playertextid == PergTD[playerid][8])
- {
- Perguntas[playerid][Clickado] = 1;
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 1);
- ShowTDsJogoP(playerid, false);
- }
- else if(playertextid == PergTD[playerid][9])
- {
- Perguntas[playerid][Clickado] = 2;
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 1);
- ShowTDsJogoP(playerid, false);
- }
- else if(playertextid == PergTD[playerid][10])
- {
- Perguntas[playerid][Clickado] = 3;
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 1);
- ShowTDsJogoP(playerid, false);
- }
- else if(playertextid == PergTD[playerid][11])
- {
- Perguntas[playerid][Clickado] = 4;
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 1);
- ShowTDsJogoP(playerid, false);
- }
- else if(playertextid == PergTD[playerid][13])
- {
- ShowTDsJogoP(playerid, false);
- }
- else if(playertextid == PergTD[playerid][14])
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem dinheiro suficiente. (R$ 5000)");
- Perguntas[playerid][PerguntaID]++;
- ShowTDsJogoP(playerid, false);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, 0x00FFFFFF, "[INFO]: Você pulou a pergunta com sucesso. {FF2828}(-R$ 5000)");
- }
- return 1;
- }
- CMD:perguntas(playerid)
- {
- if(Perguntas[playerid][Pontos] < 50) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem pontos suficientes para iniciar o Jogo de Perguntas, aguarde alguns minutos.");
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 0);
- ShowTDsJogoP(playerid);
- return 1;
- }
- CMD:resetarperguntas(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Você não tem autorização para usar este comando.");
- if(sscanf(params, "u", params[0])) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Use /resetarperguntas [ID]");
- if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, 0xFF0000FF, "[ERRO]: Jogador não conectado");
- ResetarPerguntas(params[0]);
- SendClientMessage(playerid, 0x00FF00FF, "[INFO]: Perguntas do jogador resetadas com sucesso.");
- return 1;
- }
- stock ResetarPerguntas(bucID)
- {
- Perguntas[bucID][PerguntaID] = 0;
- Perguntas[bucID][Pontos] = POINTS_START;
- return 1;
- }
- stock SetarPergunta(playerid, Pergunta[], Opcao1[], Opcao2[], Opcao3[], Opcao4[], opcaoCerta, PressButton)
- {
- for(new i = 8; i < 12; ++i) PlayerTextDrawSetSelectable(playerid, PergTD[playerid][i], false); //PARA NÃO ACONTECER BUGS
- ConverterTexto(Pergunta);
- ConverterTexto(Opcao1);
- ConverterTexto(Opcao2);
- ConverterTexto(Opcao3);
- ConverterTexto(Opcao4);
- PlayerTextDrawSetString(playerid, PergTD[playerid][7], Pergunta);
- PlayerTextDrawSetString(playerid, PergTD[playerid][8], Opcao1);
- PlayerTextDrawSetString(playerid, PergTD[playerid][9], Opcao2);
- PlayerTextDrawSetString(playerid, PergTD[playerid][10], Opcao3);
- PlayerTextDrawSetString(playerid, PergTD[playerid][11], Opcao4);
- if(PressButton == 1)
- {
- Perguntas[playerid][PerguntaID]++;
- if(opcaoCerta == Perguntas[playerid][Clickado])
- {
- SendClientMessage(playerid, -1, "{00FF00}[INFO]: Você escolheu a opção correta, você dá para um cara inteligente! {00FFFF}(+100 Pontos)");
- Perguntas[playerid][Pontos] += 100;
- }
- else
- {
- if(Perguntas[playerid][Pontos] > 50)
- {
- Perguntas[playerid][Pontos] -= 50;
- SendClientMessage(playerid, -1, "{FF0000}[INFO]: Você escolheu a opção errada e perdeu {FF8000}50 {FF0000}pontos.");
- }
- else
- {
- Perguntas[playerid][Pontos] = 0;
- SendClientMessage(playerid, -1, "{FF0000}[INFO]: Você escolheu a opção errada e perdeu todos os seus pontos.");
- ShowTDsJogoP(playerid, false);
- return 1;
- }
- }
- SetTimerEx("ShowNextPergunta", 50, false, "i", playerid);
- }
- for(new i = 8; i < 12; ++i) PlayerTextDrawSetSelectable(playerid, PergTD[playerid][i], true); //PARA NÃO ACONTECER BUGS
- return 1;
- }
- forward ShowNextPergunta(id);
- public ShowNextPergunta(id)
- {
- Open_Pergunta(id,Perguntas[id][PerguntaID], 0);
- ShowTDsJogoP(id);
- return 1;
- }
- forward GivePointsGame(id);
- public GivePointsGame(id)
- {
- if(Perguntas[id][Pontos] < 50)
- {
- Perguntas[id][Pontos] += 25;
- GameTextForPlayer(id, "~y~+25 Pontos", 2000, 1);
- }
- return 1;
- }
- forward AtualizarPontos(id);
- public AtualizarPontos(id)
- {
- new StringPoints[30];
- format(StringPoints, sizeof(StringPoints), "PONTOS: %d", Perguntas[id][Pontos]);
- PlayerTextDrawSetString(id, PergTD[id][12], StringPoints);
- return 1;
- }
- stock FolderPerguntados(xID)
- {
- new perName[MAX_PLAYER_NAME], perString[100];
- GetPlayerName(xID, perName, sizeof(perName));
- format(perString, sizeof(perString), PASTA_PERGUNTADOS, perName);
- return perString;
- }
- stock CreatePerguntTDs(playerid)
- {
- PergTD[playerid][0] = CreatePlayerTextDraw(playerid,49.000000, 173.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][0], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][0], 0.500000, 23.399991);
- PlayerTextDrawColor(playerid,PergTD[playerid][0], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][0], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][0], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][0], 255);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][0], 580.000000, 0.000000);
- PergTD[playerid][1] = CreatePlayerTextDraw(playerid,49.000000, 154.000000, "~>~_JOGO DE PERGUNTAS");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][1], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][1], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][1], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][1], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][1], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][1], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][1], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][1], 580.000000, 0.000000);
- PergTD[playerid][2] = CreatePlayerTextDraw(playerid,49.000000, 154.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][2], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][2], 0.500000, 25.499998);
- PlayerTextDrawColor(playerid,PergTD[playerid][2], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][2], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][2], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][2], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][2], 37.000000, 0.000000);
- PergTD[playerid][3] = CreatePlayerTextDraw(playerid,588.000000, 154.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][3], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][3], 0.500000, 25.500001);
- PlayerTextDrawColor(playerid,PergTD[playerid][3], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][3], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][3], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][3], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][3], 585.000000, 0.000000);
- PergTD[playerid][4] = CreatePlayerTextDraw(playerid,45.000000, 391.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][4], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][4], 0.500000, -0.400000);
- PlayerTextDrawColor(playerid,PergTD[playerid][4], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][4], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][4], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][4], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][4], 585.000000, 0.000000);
- PergTD[playerid][5] = CreatePlayerTextDraw(playerid,49.000000, 354.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][5], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][5], 0.500000, -0.400000);
- PlayerTextDrawColor(playerid,PergTD[playerid][5], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][5], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][5], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][5], -2139062144);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][5], 580.000000, 0.000000);
- PergTD[playerid][6] = CreatePlayerTextDraw(playerid,49.000000, 230.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][6], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][6], 0.500000, -0.400000);
- PlayerTextDrawColor(playerid,PergTD[playerid][6], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][6], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][6], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][6], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][6], -2139062144);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][6], 580.000000, 0.000000);
- PergTD[playerid][7] = CreatePlayerTextDraw(playerid,55.000000, 176.000000, "Na mitologia grega, quem seria o deus da guerra?");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][7], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][7], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][7], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][7], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][7], 1);
- PergTD[playerid][8] = CreatePlayerTextDraw(playerid,61.000000, 241.000000, "OPCAO 1");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][8], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][8], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][8], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][8], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][8], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][8], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][8], 566.000000, 10.000000);
- PergTD[playerid][9] = CreatePlayerTextDraw(playerid,61.000000, 270.000000, "OPCAO 2");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][9], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][9], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][9], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][9], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][9], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][9], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][9], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][9], 566.000000, 10.000000);
- PergTD[playerid][10] = CreatePlayerTextDraw(playerid,61.000000, 299.000000, "OPCAO 3");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][10], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][10], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][10], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][10], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][10], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][10], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][10], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][10], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][10], 566.000000, 10.000000);
- PergTD[playerid][11] = CreatePlayerTextDraw(playerid,61.000000, 328.000000, "OPCAO 4");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][11], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][11], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][11], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][11], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][11], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][11], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][11], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][11], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][11], 566.000000, 10.000000);
- PergTD[playerid][12] = CreatePlayerTextDraw(playerid,54.000000, 362.000000, "PONTOS: 000");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][12], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][12], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][12], 0.500000, 1.600000);
- PlayerTextDrawColor(playerid,PergTD[playerid][12], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][12], 0);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][12], 1);
- PlayerTextDrawSetShadow(playerid,PergTD[playerid][12], 1);
- PergTD[playerid][13] = CreatePlayerTextDraw(playerid,478.000000, 365.000000, "FECHAR");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][13], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][13], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][13], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][13], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][13], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][13], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][13], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][13], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][13], 566.000000, 10.000000);
- PergTD[playerid][14] = CreatePlayerTextDraw(playerid,284.000000, 365.000000, "PULAR (R$ 5000)");
- PlayerTextDrawBackgroundColor(playerid,PergTD[playerid][14], 255);
- PlayerTextDrawFont(playerid,PergTD[playerid][14], 2);
- PlayerTextDrawLetterSize(playerid,PergTD[playerid][14], 0.500000, 1.300000);
- PlayerTextDrawColor(playerid,PergTD[playerid][14], -1);
- PlayerTextDrawSetOutline(playerid,PergTD[playerid][14], 1);
- PlayerTextDrawSetProportional(playerid,PergTD[playerid][14], 1);
- PlayerTextDrawUseBox(playerid,PergTD[playerid][14], 1);
- PlayerTextDrawBoxColor(playerid,PergTD[playerid][14], -8388480);
- PlayerTextDrawTextSize(playerid,PergTD[playerid][14], 466.000000, 10.000000);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][8], true);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][9], true);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][10], true);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][11], true);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][13], true);
- PlayerTextDrawSetSelectable(playerid, PergTD[playerid][14], true);
- return 1;
- }
- stock ShowTDsJogoP(playerid, bool:ViewBool=true)
- {
- if(ViewBool)
- {
- for(new i = 0; i < 15; ++i)
- {
- PlayerTextDrawShow(playerid, PergTD[playerid][i]);
- }
- SelectTextDraw(playerid, 0xFFFFFF80);
- }
- else
- {
- for(new i = 0; i < 15; ++i)
- {
- PlayerTextDrawHide(playerid, PergTD[playerid][i]);
- }
- CancelSelectTextDraw(playerid);
- }
- return 1;
- }
- stock Open_Pergunta(playerid, oID, Apertou)
- {
- if(oID > MAX_PERGUNTAS)
- {
- ResetarPerguntas(playerid);
- Open_Pergunta(playerid,Perguntas[playerid][PerguntaID], 0);
- return 1;
- }
- if(oID == 0) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Na mitologia grega, quem é o Deus da Guerra?", "Poseidon", "Ares", "Zeus", "Hélios", 2, Apertou);
- else if(oID == 1) SetarPergunta(playerid, "~r~Geografia ~n~ ~w~Qual é a capital do Rio Grande do Norte?", "Pernambuco", "Salvador", "Natal", "João Pessoa", 3, Apertou);
- else if(oID == 2) SetarPergunta(playerid, "~r~Geografia ~n~ ~w~Qual é a capital da Paraiba?", "Natal", "Salvador", "Pernambuco", "João Pessoa", 4, Apertou);
- else if(oID == 3) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Na mitologia grega, quem é a Deusa do Amor e da Beleza?", "Atena", "Hera", "Afrodite", "Reia", 3, Apertou);
- else if(oID == 4) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Na mitologia grega, quem é o Deus dos Deuses?", "Poseidon", "Apolo", "Hermes", "Zeus", 4, Apertou);
- else if(oID == 5) SetarPergunta(playerid, "~y~Matematica ~n~ ~w~Resolva: 9 x 9 - 80 + 9 x 10 - 64 ?", "28", "32", "36", "42", 3, Apertou);
- else if(oID == 6) SetarPergunta(playerid, "~p~Esporte ~n~ ~w~Qual foi o placar do primeiro jogo do Brasil na copa de 2014?", "Brasil 4 x 1 Croacia", "Brasil 3 x 1 Croacia", "Brasil 2 x 1 Croacia", "Brasil 1 x 1 Croacia", 2, Apertou);
- else if(oID == 7) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Na mitologia grega, quem é o deus conhecido como ~n~ a personificação do sol?", "Apolo", "Hermes", "Hélios", "Poseidon", 3, Apertou);
- else if(oID == 8) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Quando um policial esta trabalhando, ele esta trajando:", "Um Quimono", "Uma Farda", "Um Pijama", "Um Terno", 2, Apertou);
- else if(oID == 9) SetarPergunta(playerid, "~b~Ciencias ~n~ ~w~A orelha tem que tipo de formação?", "óssea", "Muscular", "Nervosa", "Cartilaginosa", 4, Apertou);
- else if(oID == 10) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Argentita, é o nome dado a um tipo de:", "Instrumento", "Mineral", "Animal", "Planta", 2, Apertou);
- else if(oID == 11) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~A palavra 'BIG' em ingles significa:", "Grande", "Pequeno", "Bonito", "Porco", 1, Apertou);
- else if(oID == 12) SetarPergunta(playerid, "~r~Geografia ~n~ ~w~O conjunto das condiçoes atmosféricas de uma região, ~n~ chama-se:", "Tempo", "Clima", "Estação", "Temperatura", 2, Apertou);
- else if(oID == 13) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Na mitologia grega, quem morreu por causa da vaidade?", "Apolo", "Zeus", "Eco", "Narciso", 4, Apertou);
- else if(oID == 14) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Onde ocorreu a guerra dos emboabas?", "Paraiba", "Ceara", "Piaui", "Minas Gerais", 4, Apertou);
- else if(oID == 15) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Qual o unico mes que ganha mais um dia em anos bissextos?", "Junho", "Julho", "Fevereiro", "Janeiro", 3, Apertou);
- else if(oID == 16) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Qual é a sigla da Organizaçao dos Estados Americanos?", "ONU", "OPEP", "UNE", "OEA", 4, Apertou);
- else if(oID == 17) SetarPergunta(playerid, "~r~Geografia ~n~ ~w~A terra divide-se em quantos hemisférios?", "4", "3", "2", "1", 3, Apertou);
- else if(oID == 18) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Em que historia infantil uma casa foi destruida com um sopro?", "A bela e a fera", "Os 3 porquinhos", "Bela adormecida", "Branca de neve", 2, Apertou);
- else if(oID == 19) SetarPergunta(playerid, "~b~Ciencias ~n~ ~w~Qual desses sons não seria de um animal?", "Coaxar", "Cacarejo", "Tique-Taque", "Grunhido", 3, Apertou);
- else if(oID == 20) SetarPergunta(playerid, "~b~Ciencias ~n~ ~w~Qual desses animais é o mais devagar?", "Tartaruga", "Leopardo", "Coelho", "Elefante", 1, Apertou);
- else if(oID == 21) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Que cidade é conhecida como 'Zona Franca'?", "Cuiaba", "Curitiba", "Natal", "Manaus", 4, Apertou);
- else if(oID == 22) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~O Glossário refere-se a:", "Prefacio", "Vocabulário", "Tema", "Enredo", 2, Apertou);
- else if(oID == 23) SetarPergunta(playerid, "~b~Ciencias ~n~ ~w~O dente-de-leão seria:", "Uma ferramenta", "Uma planta", "Um Caule", "Uma comida", 2, Apertou);
- else if(oID == 24) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~A palavra 'Natal' refere-se a:", "Crescimento", "Criar", "Juventude", "Nascimento", 4, Apertou);
- else if(oID == 25) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Qual dessas datas não seria um feriado nacional?", "12 de agosto", "7 de setembro", "1 de maio", "25 de dezembro", 1, Apertou);
- else if(oID == 26) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~O Peregrino também pode ser chamado de:", "Romantico", "Romeu", "Romeiro", "Romancista", 3, Apertou);
- else if(oID == 27) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Nos desenhos animados, quem é a mulher de ~n~ Fred Flintstone?", "Beth", "Vilma", "Margarida", "Clarabela", 2, Apertou);
- else if(oID == 28) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Qual medicamento é utilizado para suprimir a dor?", "Antidepressivo", "Analgésico", "Calmante", "Laxante", 2, Apertou);
- else if(oID == 29) SetarPergunta(playerid, "~g~Historia ~n~ ~w~Como eram chamados os navios que traziam os ~n~ escravos para o Brasil?", "Branqueiros", "Pesqueiros", "Negreiros", "Petroleiros", 3, Apertou);
- else if(oID == 30) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~O Ponei é um tipo de:", "Coelho", "Cachorro", "Camelo", "Cavalo", 4, Apertou);
- else if(oID == 31) SetarPergunta(playerid, "~r~Geografia ~n~ ~w~O clima do Brasil seria caracterizado como:", "Tropical", "SubTropical", "Semi-Arido", "Equatorial", 1, Apertou);
- else if(oID == 32) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Os objetos vendidos no sebo seriam:", "Novos", "Lacrados", "Ineditos", "Usados", 4, Apertou);
- else if(oID == 33) SetarPergunta(playerid, "~y~Variedades ~n~ ~w~Qual seria a bebida originada do suco de uva?", "Cerveja", "Vinho", "uisque", "Refrigerante", 2, Apertou);
- else if(oID == 34) SetarPergunta(playerid, "~y~Matematica ~n~ ~w~Quantas unidades tem 8 centenas?", "80", "100", "800", "8", 3, Apertou);
- //else if(oID == ) SetarPergunta(playerid, "~y~Tema ~n~ ~w~TEXT", "", "", "", "", OPCAO_CERTA, Apertou);
- return 1;
- }
- stock ConverterTexto(string[]) // By Sheby
- {
- for(new arraysize = 0; arraysize < strlen(string); arraysize++)
- {
- if(strfind(string, "â", true) != -1){new pos = strfind(string, "â", true); strdel(string, pos, pos+strlen("â")); strins(string, "™", pos, sizeof(pos));}
- if(strfind(string, "ã", true) != -1){new pos = strfind(string, "ã", true); strdel(string, pos, pos+strlen("ã")); strins(string, "š", pos, sizeof(pos));}
- if(strfind(string, "á", true) != -1){new pos = strfind(string, "á", true); strdel(string, pos, pos+strlen("á")); strins(string, "˜", pos, sizeof(pos));}
- if(strfind(string, "é", true) != -1){new pos = strfind(string, "é", true); strdel(string, pos, pos+strlen("é")); strins(string, "ž", pos, sizeof(pos));}
- if(strfind(string, "ú", true) != -1){new pos = strfind(string, "ú", true); strdel(string, pos, pos+strlen("ú")); strins(string, "“", pos, sizeof(pos));}
- if(strfind(string, "ó", true) != -1){new pos = strfind(string, "ó", true); strdel(string, pos, pos+strlen("ó")); strins(string, "¦", pos, sizeof(pos));}
- if(strfind(string, "ê", true) != -1){new pos = strfind(string, "ê", true); strdel(string, pos, pos+strlen("ê")); strins(string, "Ÿ", pos, sizeof(pos));}
- if(strfind(string, "í", true) != -1){new pos = strfind(string, "í", true); strdel(string, pos, pos+strlen("í")); strins(string, "¢", pos, sizeof(pos));}
- if(strfind(string, "ç", true) != -1){new pos = strfind(string, "ç", true); strdel(string, pos, pos+strlen("ç")); strins(string, "œ", pos, sizeof(pos));}
- if(strfind(string, "ô", true) != -1){new pos = strfind(string, "ô", true); strdel(string, pos, pos+strlen("ô")); strins(string, "§", pos, sizeof(pos));}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement