Pawn\n Envolvendo jogadores, revolucionando servidores!\n Josma_CMD\n\n\n\n\n\n\n\n\n");}//MAIN By: Gill Pennerpublic OnFilterScriptInit(){ CreatePickup(1239, 1, 1494.325195,1304.942871,1093.289062, 0); //Pickup autoescola entrada CreatePickup(1239, 1, 1081.219726, -1696.847534, 13.546875, 0); //Pickup autoescola saida CreatePickup(2894, 1, 1490.509765, 1305.782958, 1093.296386, 0); //Pickup menu auto escola Create3DTextLabel("Auto escola\nPressione ENTER para entrar.", PickupCor, 356.8607,186.0784,1009.1264, 40, 0, 0); Create3DTextLabel("Auto escola\nPressione ENTER para sair.", PickupCor, 1494.325195,1304.942871,1093.289062, 40, 0, 0); Create3DTextLabel("Menu Auto escola\nPressione ENTER para ver as opcoes.", PickupCor, 1490.509765, 1305.782958, 1093.296386, 40, 0, 0); return 1;}public OnPlayerConnect(playerid){ SendClientMessage(playerid, 0x1E90FF99, "Este servidor usa um sistema de teste de habilitacao do{FFFFFF} Progressao Pawn - Josma_CMD"); return 1;}public OnPlayerStateChange(playerid, newstate, oldstate){ if(oldstate == PLAYER_STATE_DRIVER) { if(TesteEtapa[playerid] == 14 && FazendoTeste[playerid] == 1 || TesteEtapa[playerid] == 13 && FazendoTeste[playerid] == 1) { ShowPlayerDialog(playerid, DRepetirMoto1, DIALOG_STYLE_MSGBOX, "Voce caiu", "Voce caiu da moto, deseja repetir o teste?", "Sim", "Nao"); DestroyVehicle(VAutoEscolaTeste[playerid]); DisablePlayerRaceCheckpoint(playerid); return 1; } return 1; } return 1;}public OnPlayerEnterRaceCheckpoint(playerid){ new Float: lataria, Float: P[3]; //Cria as variaveis que serao usadas abaixo GetVehicleHealth(VAutoEscolaTeste[playerid], lataria); //Getara o health do veiculo, para ver se o player danificou ele no teste GetPlayerPos(playerid, P[0], P[1], P[2]); //Pegara a coordenada de onde sera aplicado o som PlayerPlaySound(playerid, 1053, P[0], P[1], P[2]); //Aplicara som ao entrar no Race Checkpoint if(TesteEtapa[playerid] == 1 && FazendoTeste[playerid] == 1) { if(lataria < 1000) { ShowPlayerDialog(playerid, DRepetirCarros1, DIALOG_STYLE_MSGBOX, "Voce nao conseguiu", "Voce danificou seu veiculo, deseja repetir o teste?", "Sim", "Nao"); KillTimer(Verificar[playerid]); DestroyVehicle(VAutoEscolaTeste[playerid]); FazendoTeste[playerid] = 0; DisablePlayerRaceCheckpoint(playerid); return 1; } else if(lataria == 1000) { ShowPlayerDialog(playerid, DRepetirCarros2, DIALOG_STYLE_MSGBOX, "Voce conseguiu", "Voce deseja passar para a proxima etapa do teste de habilitacao?", "Sim", "Nao"); DestroyVehicle(VAutoEscolaTeste[playerid]); FazendoTeste[playerid] = 0; KillTimer(Verificar[playerid]); DisablePlayerRaceCheckpoint(playerid); return 1; } return 1; } if(TesteEtapa[playerid] == 2 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[2][0], TesteCoords[2][1], TesteCoords[2][2], TesteCoords[3][0], TesteCoords[3][1], TesteCoords[3][2], 5.0); TesteEtapa[playerid] = 3; return 1; } if(TesteEtapa[playerid] == 3 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[3][0], TesteCoords[3][1], TesteCoords[3][2], TesteCoords[4][0], TesteCoords[4][1], TesteCoords[4][2], 5.0); TesteEtapa[playerid] = 4; return 1; } if(TesteEtapa[playerid] == 4 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[4][0], TesteCoords[4][1], TesteCoords[4][2], TesteCoords[5][0], TesteCoords[5][1], TesteCoords[5][2], 5.0); TesteEtapa[playerid] = 5; return 1; } if(TesteEtapa[playerid] == 5 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[5][0], TesteCoords[5][1], TesteCoords[5][2], TesteCoords[6][0], TesteCoords[6][1], TesteCoords[6][2], 5.0); TesteEtapa[playerid] = 6; return 1; } if(TesteEtapa[playerid] == 6 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[6][0], TesteCoords[6][1], TesteCoords[6][2], TesteCoords[7][0], TesteCoords[7][1], TesteCoords[7][2], 5.0); TesteEtapa[playerid] = 7; return 1; } if(TesteEtapa[playerid] == 7 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[7][0], TesteCoords[7][1], TesteCoords[7][2], TesteCoords[8][0], TesteCoords[8][1], TesteCoords[8][2], 5.0); TesteEtapa[playerid] = 8; return 1; } if(TesteEtapa[playerid] == 8 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 0, TesteCoords[8][0], TesteCoords[8][1], TesteCoords[8][2], TesteCoords[9][0], TesteCoords[9][1], TesteCoords[9][2], 5.0); TesteEtapa[playerid] = 9; return 1; } if(TesteEtapa[playerid] == 9 && FazendoTeste[playerid] == 1) { DisablePlayerRaceCheckpoint(playerid); SetPlayerRaceCheckpoint(playerid, 1, TesteCoords[9][0], TesteCoords[9][1], TesteCoords[9][2], TesteCoords[9][0], TesteCoords[9][1], TesteCoords[9][2], 5.0); TesteEtapa[playerid] = 10; return 1; } if(TesteEtapa[playerid] == 10 && FazendoTeste[playerid] == 1) { if(lataria < 1000) { ShowPlayerDialog(playerid, DRepetirCarros2, DIALOG_STYLE_MSGBOX, "Voce nao conseguiu", "Voce danificou seu veiculo, deseja repetir o teste?", "Sim", "Nao"); KillTimer(Verificar[playerid]); DestroyVehicle(VAutoEscolaTeste[playerid]); FazendoTeste[playerid] = 0; DisablePlayerRaceCheckpoint(playerid); return 1; } else if(lataria == 1000) { ShowPlayerDialog(playerid, DRepetirCarros3, DIALOG_STYLE_MSGBOX, "Voce conseguiu", "Voce deseja passar para a proxima etapa