if(strcmp(cmd, "/trabalharlixo", true) == 0) { format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid)); if(dini_Int(file, "Profissao") == Lixeiro || dini_Int(file, "Profissao") == Gari) if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 40 ![]() { if(IsPlayerInDynamicCP(playerid, CheckpointsFix[84])) { if(Carregamento[playerid] == 0) { Carregamento[playerid] = 1; ShowPlayerLocationFromGPS(playerid, "Catar o Lixo", 1918.4936, -1131.9490, 24.7785); SendClientMessage(playerid, COLOR_GREEN, "Trabalho Iniciado!"); } else { SendClientMessage(playerid, Vermelho, "Voce ja iniciou o trabalho!"); } } else { SendClientMessage(playerid, Vermelho, "Vocк nгo estб no check de inciar o trabalho!"); } } else { SendClientMessage(playerid, Vermelho, "Vocк nгo estб em um caminhao de lixo."); } return 1; } |
if(strcmp(cmd, "/catarlixo", true) == 0) { format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid)); if(dini_Int(file, "Profissao") == Lixeiro || dini_Int(file, "Profissao") == Gari) if(IsPlayerInDynamicCP(playerid, CheckpointsFix[85])) { if(Carregamento[playerid] == 0) { SendClientMessage(playerid, Vermelho, "Seu veнculo nгo estб carregado!"); } else { DisablePlayerCheckpoint(playerid); Carregamento[playerid] = 0; GivePlayerGrana(playerid, 800); SendClientMessage(playerid, COLOR_GREEN, "voce catou o lixo к ganhou $800 pelo serviзo."); } } else { SendClientMessage(playerid, Vermelho, "Vocк nгo estб no ponto de catar lixo."); } return 1; } |
CheckpointsFix[84] = CreateDynamicCP(2059.3647, -1985.8686, 13.5468, 6.0, -1, -1, -1, 100.0);// Carregar CheckpointsFix[85] = CreateDynamicCP(1918.4936, -1131.9490, 24.7785, 6.0, -1, -1, -1, 100.0);// Descarregar |