Digite Sua Senha Para Logar", Nome); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar"); SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !"); return 1; } new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[124]; format(String, sizeof(String), CONTAS, Nome); if(!strcmp(inputtext,dini_Get(String,"Senha"),false)) { SetarPlayer(playerid); Logou[playerid]++; SendClientMessage(playerid,0x00FF00AA,"Voce Foi Logado Com Sucesso."); //SpawnPlayer(playerid); if(Tutorial[playerid] < 1) { VerTutorial(); SetTimer("VerTutorial", 1000, true); return true; } return 1; } else { SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente"); format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF} Digite Sua Senha Para Logar", Nome); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar"); } return 1; } else { SendClientMessage(playerid, 0xFF0000AA, "Voce nao quis se logar, por este motivo sera Kickado"); Kick(playerid); return 1; } } return true;}public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost){ if(PlayerInfo[Shooter][Org] == 1 && PlayerInfo[Target][Org] != 1) { Level[Shooter] ++; SendClientMessage(Shooter,-1,"Voce Ganhou +1 Level Por Transformar um Humano em Zumbi."); ApplyAnimation(Target, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); SetTimerEx("ParteII", 3000, false, "i", Target); TextDrawShowForPlayer(Target, JFS); TogglePlayerControllable(Target, 0); GivePlayerMoney(Shooter, 5000); } return true;}forward ParteII(playerid);public ParteII(playerid){ TextDrawShowForPlayer(playerid, JFS); TextDrawBoxColor(JFS, 0xFF0A00FF); SetTimerEx("ParteIII", 3000, false, "i", playerid); GetPlayerPos(playerid,tX[playerid],tY[playerid],tZ[playerid]); PlayerInfo[playerid][Org] = 0; Transformando[playerid] = 1; SpawnPlayer(playerid); return true;}forward PlacarS(playerid);public PlacarS(playerid){ new Placar[128]; format(Placar, 128, "Humanos: %d", Humanos); return TextDrawSetString(Text:Textdraw0, Placar);}forward PlacarZ(playerid);public PlacarZ(playerid){ new PlacarZ1[128]; format(PlacarZ1, 128, "Zumbis: %d", Zumbis); return TextDrawSetString(Text:Textdraw1, PlacarZ1);}forward CheckGanhador(playerid);public CheckGanhador(playerid){ if(Zumbis < 1 && Humanos > 0) { GameTextForAll("Humano Wins", 5000, 3); SendClientMessageToAll(-1, "Os Humanos Ganharam Parabens."); SendClientMessageToAll(-1, "o Vencedor que Foi os Humanos, Apenas os Vivos, Ganharam R$ 50000 e 2 Level."); SetTimer("Restart", 10000, false); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][Org] == 2) { GivePlayerMoney(i, 50000); Level[i] += 2; SetPlayerScore(i, Level[i]); } } return true; } if(Humanos < 1 && Zumbis > 0) { GameTextForAll("Zumbis Wins", 5000, 3); SendClientMessageToAll(-1, "Os Zumbis Ganharam Parabens."); SendClientMessageToAll(-1, "o Vencedor que Foi os Zumbis, Apenas os Vivos, Ganharam R$ 50000 e 2 Level."); SetTimer("Restart", 10000, false); for(new i = 0; i < MAX_PLAYERS; i++) { if(PlayerInfo[i][Org] == 1) { GivePlayerMoney(i, 50000); Level[i] += 2; SetPlayerScore(i, Level[i]); } } return true; } return true;}forward Restart();public Restart(){ for(new playerid = 0; playerid < GetMaxPlayers(); ++playerid) { Zumbis = 0; Humanos = 0; AntRoubo = 0; Trancado = 0; PlacarS(playerid); PlacarZ(playerid); Escolheu[playerid] = 0; SetPlayerDrunkLevel (playerid, 0); PlayerInfo[playerid][Org] = 0; SetPlayerCameraPos(playerid, 2159.8921,-1055.2019,80.4219); SetPlayerCameraLookAt(playerid, 2159.6272,-1061.3921,80.4219); ShowPlayerDialog(playerid, Escolha, DIALOG_STYLE_LIST, "Escolha o Seu Time","Zumbis\nHumanos","Selecionar","Cancelar"); } return true;}stock specPlayer(playerid, id){ if(GetPVarInt(playerid, "Morreu") == 0) return TogglePlayerSpectating(playerid, 0),true; if(!IsPlayerConnected(id)) specid[playerid] = playerid; if(!IsPlayerInAnyVehicle(id)) { TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, id); } else { TogglePlayerSpectating(playerid, 1); PlayerSpectateVehicle(playerid, GetPlayerVehicleID(id)); } SetTimerEx("specAgain",1000,false,"i",playerid); return 0x01;}forward specAgain(playerid); public specAgain(playerid){ specPlayer(playerid, specid[playerid]);}forward JFSPickup(playerid);public JFSPickup(playerid){ Pickup1 = CreatePickup(358, 2, 2357.0881,61.2717,42.9320, -1); return true;}forward JFSPickup1(playerid);public JFSPickup1(playerid){ Pickup2 = CreatePickup(358, 2, 2435.7512,75.5660,43.6957, -1); return true;}forward JFSPickup2(playerid);public JFSPickup2(playerid){ Pickup3 = CreatePickup(358, 2, 2492.6580,24.6331,43.7981, -1); return true;}forward Invadindo(playerid);public Invadindo(playerid){ CreateExplosion(-443.3189,1442.5240,21.2363,7,10.0); Trancado = 0; GetPlayerName(playerid, NomeJFS, sizeof(NomeJFS)); format(JFSPerfect, 128, "%s e os Zumbis Invadiram a Casa de Seguranca.", NomeJFS); SendClientMessageToAll(-1, JFSPerfect); AntRoubo = 1; SetTimerEx("AntRoubo1", 60000, false, "i", playerid); return true;}forward AntRoubo1(playerid);public AntRoubo1(playerid){ AntRoubo = 0; return true;}SalvarPlayer(playerid){ new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[50]; format(String, sizeof(String), CONTAS, Nome); dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid)); dini_IntSet(String,"Level", Level[playerid]); dini_IntSet(String,"Matou", Matou[playerid]); dini_IntSet(String,"Morreu", Morreu[playerid]); dini_IntSet(String,"Logou", Logou[playerid]); dini_IntSet(String,"Tutorial", Tutorial[playerid]); return 1;}SetarPlayer(playerid){ new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); new String[50]; format(String, sizeof(String), CONTAS, Nome); GivePlayerMoney(playerid, dini_Int(String,"Dinheiro")); Level[playerid] = dini_Int(String,