<= 20)) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "%s[Player Amador]", sendername); SendClientMessage(playerid, -1, string); } if((Level[playerid] >= 21) && (Level[playerid] <= 40)) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "%s[Player Profissional]", sendername); SendClientMessage(playerid, -1, string); } if((Level[playerid] >= 41) && (Level[playerid] <= 100)) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "%s[Player Fodao]", sendername); SendClientMessage(playerid, -1, string); } if((Level[playerid] > 100)) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 128, "%s[O Melhor do Servidor]", sendername); SendClientMessage(playerid, -1, string); } } } } return true; } if (strcmp("/entrar", cmdtext, true) == 0) { if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Esta TRANCADA !"); if(IsPlayerInRangeOfPoint(playerid, 1.0, -443.3189,1442.5240,21.2363)) // Entrando Caverna { SetPlayerPos(playerid, 2308.6758,-16.3935,26.7496); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 359.1516); return true; } if(IsPlayerInRangeOfPoint(playerid, 1.0, 2303.3257,-16.3115,26.4844)) // Entrada Principal { SetPlayerPos(playerid, -395.0671,1258.3286,7.0424); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 269.9042); return true; } if(IsPlayerInRangeOfPoint(playerid, 1.0, 2305.3201,-16.0648,26.7422)) // Saida { SetPlayerPos(playerid, 2299.8901,-16.1652,26.4844); SetPlayerInterior(playerid, 0); SetPlayerFacingAngle(playerid, 88.1222); return true; } return true; } return false;}public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ if(PlayerInfo[playerid][Org] == 1) { SendClientMessage(playerid,0xA0A0A0FF," Cuidado, Voce Nao Sabe Dirijir Carro."); } return true;}public OnPlayerPickUpPickup(playerid, pickupid){ if(PlayerInfo[playerid][Org] == 2) { if(pickupid == Pickup1) { SetTimerEx("JFSPickup", 60000,false,"i",playerid); DestroyPickup(Pickup1); SendClientMessage(playerid, -1,"Voce Pegou o Sniper Quem Contia 5 de Ballas."); GivePlayerWeapon(playerid, 34, 5); return true; } if(pickupid == Pickup2) { SetTimerEx("JFSPickup1", 60000,false,"i",playerid); DestroyPickup(Pickup2); SendClientMessage(playerid, -1,"Voce Pegou o Sniper Quem Contia 5 de Ballas."); GivePlayerWeapon(playerid, 34, 5); return true; } if(pickupid == Pickup3) { SetTimerEx("JFSPickup2", 60000,false,"i",playerid); DestroyPickup(Pickup3); SendClientMessage(playerid, -1,"Voce Pegou o Sniper Quem Contia 5 de Ballas."); GivePlayerWeapon(playerid, 34, 5); return true; } return true; } return true;}public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if((newkeys == KEY_FIRE) && (GetPVarInt(playerid,"Morreu") == 1)) specPlayer(playerid, ++specid[playerid]); if((newkeys & KEY_SECONDARY_ATTACK)) { if(IsPlayerInRangeOfPoint(playerid, 1.0, -443.3189,1442.5240,21.2363) || IsPlayerInRangeOfPoint(playerid, 1.0, 2303.3257,-16.3115,26.4844) || IsPlayerInRangeOfPoint(playerid, 1.0, 2305.3201,-16.0648,26.7422)) { if(Trancado == 1) return SendClientMessage(playerid,0xFF0000FF,"A Porta Esta TRANCADA !"); OnPlayerCommandText(playerid,"/entrar"); return true; } } return true;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == Escolha) { if(response == 0) { ShowPlayerDialog(playerid, Escolha, DIALOG_STYLE_LIST, "Escolha o Seu Time","Zumbis\nHumanos","Selecionar","Cancelar"); } if(response == 1) { if(listitem == 0) { if(Tutorial[playerid] < 1) { VerTutorial(); //SendClientMessage(playerid, -1, "Aperte Spawn e Divirta-se."); SpawnPlayer(playerid); return true; } SpawnPlayer(playerid); Escolheu[playerid] = 1; PlayerInfo[playerid][Org] = 1; Zumbis ++; SendClientMessage(playerid,0x00C3FF7A,"Voce Escolheu Ser Humano, Qualquer Coisa Use ( /ajuda )"); } if(listitem == 1) { if(Tutorial[playerid] < 1) { VerTutorial(); // SendClientMessage(playerid, -1, "Aperte Spawn e Divirta-se."); SpawnPlayer(playerid); return true; } SpawnPlayer(playerid); Escolheu[playerid] = 1; PlayerInfo[playerid][Org] = 2; Humanos ++; SendClientMessage(playerid,0x00C3FF7A,"Voce Escolheu Ser Humano, Qualquer Coisa Use ( /ajuda )"); } return true; } } if(dialogid == REGISTRO) { if(response) { if(!strlen(inputtext)) { new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[150]; format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Nao Registrado\n\n{FFFFFF} Digite Uma Senha Para Continuar", Nome); ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar"); SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha valida"); return 1; } new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[124]; format(String, sizeof(String), CONTAS, Nome); dini_Create(String); dini_Set(String,"Senha",inputtext); dini_IntSet(String,"Dinheiro",0); dini_IntSet(String,"Level",0); dini_IntSet(String,"Matou",0); dini_IntSet(String,"Morreu",0); dini_IntSet(String,"Logou",0); dini_IntSet(String,"Tutorial",0); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF} Digite Sua Senha Para Logar", "Logar", "Cancelar"); return 1; } else { SendClientMessage(playerid, 0xFF0000AA, "Voce Foi Kickado Porque Nao Quis Se Registrar!!"); Kick(playerid); return 1; } } if(dialogid == LOGIN) { if(response) { if(!strlen(inputtext)) { new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[150]; format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF}