Galera, quando o player morre tipo ele suicida o player vai pro hospital normal, mais quando ele morre pra algum player ele vai pro hospital so que ao mesmo tempo ele toma um spawn pra fazenda la onde buga ou vai pra outro lugar nada haver e fica com um cigarro na mão, alguem pode me ajudar? esse bug so da se o player morre pra algum player, mais se ele suicida fica normal
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
SetTimerEx("DesbugMorte", 1000, false, "i",playerid);
if(GetPVarInt(playerid, "inArena"))
{
new rand;
rand = random(sizeof(Arenax1Spawns));
SetPlayerPos(playerid, Arenax1Spawns[rand][0], Arenax1Spawns[rand][1], Arenax1Spawns[rand][2]);
SetPlayerFacingAngle(playerid, Arenax1Spawns[rand][3]);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 25, 999);
GivePlayerWeapon(playerid, 31, 999);
GivePlayerWeapon(playerid, 34, 999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPVarInt(playerid, "inArena", 1);
ChatKill[playerid] = true;
SendClientMessage(playerid, COLOR_GRAD1, " {FFFFFF}Bem vindo a Arena X1, caso quiser sair, use: /sairarena");
return 1;
}
if(GetPVarInt(playerid, "inArena")) return 1;
if(GetPVarInt(killerid, "inArena")) return 1;
new string[256];
if(killerid == Playersx1[0] || killerid == Playersx1[1]){
if((killerid == Playersx1[0] && playerid == Playersx1[1]) || (killerid == Playersx1[1] && playerid == Playersx1[0])){
SendClientMessageToAll(COLOR_DBLUE, "|________________| Evento de x1 |________________| ");
format(string, sizeof string, "..::Evento de x1::.. %s venceu %s com o tempo de %s", NomePlayer(killerid), NomePlayer(playerid), ConvertTime(gettime()-tempox1));
SendClientMessageToAll(COLOR_DBLUE, string);
Playersx1[0] = 999;
Playersx1[1] = 999;
return 1;
}
}
if (TaNoX1[playerid] == 1 && TaNoX1[killerid] == 1)
{
format(string, sizeof(string), "{FF0000}[Arena X1] {FFFFFF}%s {FF0000}Ganhou o x1 contra {FFFFFF}%s!", PlayerName(killerid), PlayerName(playerid));
SendClientMessageToAll(0xFF0000AA, string);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerVirtualWorld(killerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerInterior(killerid, 0); // Seta o Interior da Arena dos Jogadores
TaNoX1[killerid] = 0;
TaNoX1[playerid] = 0;
SetPlayerPos(playerid, 1099.6132,1601.4355,12.5469);
SetPlayerPos(killerid, 1099.6132,1601.4355,12.5469);
}
if(pmorto[playerid])return true;
JoinedHay[playerid] = 0;
SendDeathMessage(killerid,playerid,reason);
if(GetPVarInt(playerid,"roped") == 1)
{
for(new destr2=0;destr2<=ropelength;destr2++)
{
DestroyDynamicObject(r0pes[playerid][destr2]);
}
SetPVarInt(playerid,"roped",0);
DisablePlayerCheckpoint(playerid);
}
if(MecanicMission[playerid])
{
EndMission(playerid);
}
if(PlayerPaintballing[playerid] != 0)
{
PlayerPaintballKills[killerid] ++;
if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
{
PaintballWinner = killerid;
PaintballWinnerKills = PlayerPaintballKills[killerid];
foreach(Player, i)
{
if(PlayerPaintballing[i] != 0)
{
format(string, sizeof(string), "* %s está em 1º com %d Kills.",PlayerName(killerid),PaintballWinnerKills);
SendClientMessage(i, COLOR_WHITE, string);
}
}
}
return 1;
}
new Float:pPosX, Float:pPosY, Float:pPosZ;
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
if(WantedPoints[playerid] > 0)
{
new Wanted = WantedPoints[playerid];
new diecash = WantedPoints[playerid]*100;
format(string, sizeof(string), "Você perdeu R$%s por morrer com Nível De Procura: %d.", ConvertMoney(diecash), Wanted);
SendClientMessage(playerid, COLOR_YELLOW, string);
GiveDinheiro(playerid, - diecash);
}
if(!PlayerInfo[playerid][pVIP])
{
PlayerInfo[playerid][pHospital] = true;
PlayerInfo[playerid][pTempoHospital] = TempoHospital;
}
if(GuerraMorro[gGuerra])
{
CheckPontosTr(playerid, killerid);
if(NaCamera[playerid] > 1)
{
TextDrawHideForPlayer(playerid, Hidealto2);
TextDrawHideForPlayer(playerid, Hidebaixo2);
NaCamera[playerid] = 0;
}
gPlayerSpawned[playerid] = 0;
if(IsPlayerInGuerra(playerid))
{
PlayerInfo[playerid][pHospital] = false;
PlayerInfo[playerid][pTempoHospital] = 0;
}
else
gCheckPontos(playerid, killerid);
}
gPlayerSpawned[playerid] = 0;
if(PlayerInfo[playerid][pLevel] >= 3 && !IsAMedicos(playerid))
{
foreach(Player, i)
{
if(IsAMedicos(i))
{
PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~w~Pessoa ~r~Morta~n~Bonus~g~R$100", 5000, 1);
GiveDinheiro(i, 100);
}
}
}
if(Sequestrado[playerid] == 1)
{
format(string, sizeof(string), "[SEQUESTRO] Os sequestradores mataram o refém %s. Fim do Sequestro!", NomePlayer(playerid));
SendClientMessageToAll(COLOR_DBLUE, string);
Sequestrado[playerid] = 0;
PlayerTied[playerid] = 0;
PlayerInfo[playerid][pMuted] = 0;
}
if (gPlayerTerminal[playerid] != 0)
{
BusrouteEnd(playerid);
}
if(killerid != INVALID_PLAYER_ID)
{
if(!IsPlayerInGuerra(killerid))
{
if(GetPlayerOrg(killerid) != 8 && GetPlayerOrg(killerid) != 22 && !gPlayerInGuerra(playerid))
{
SetPlayerCriminal(killerid, 255, "Assassinato");
PlayerPlaySound(killerid, 1138, 0.0, 0.0, 0.0);
}
}
if(reason == 34){
PlayerInfo[killerid][pMatouSniper] ++;
}
format(string, sizeof string, "* Você foi morto por {FFFFFF}%s[ID: %d] [ORG: %s] {33CCFF}com a arma: {FFFFFF}[%s]", NomePlayer(killerid),killerid, GetOrgName(GetPlayerOrg(killerid)), NomeArma(reason));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof string, "* Você matou {FFFFFF}%s[ID: %d] [ORG: %s] {33CCFF}com a arma: {FFFFFF}[%s]", NomePlayer(playerid),playerid, GetOrgName(GetPlayerOrg(playerid)), NomeArma(reason));
SendClientMessage(killerid, COLOR_LIGHTBLUE, string);
PlayerInfo[killerid][pKills] ++;
CheckPontosTr(playerid,killerid);
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
}
if(TendoGuerra)
{
new orgid = GetPlayerOrg(playerid);
new orgid2 = GetPlayerOrg(killerid);
if((orgid==3||orgid==15||orgid==23||orgid==29) && (orgid2==3||orgid2==15||orgid2==23||orgid2==29))
{
if(IsPlayerInGuerra(playerid) && IsPlayerInGuerra(killerid) && orgid != orgid2)
{
if(orgid2 == 3 && orgid != 29)
{
PSG[3] += 1;
}
if(orgid2 == 15)
{
PSG[15] += 1;
}
if(orgid2 == 23)
{
PSG[23] += 1;
}
if(orgid2 == 29 && orgid != 3)
{
PSG[3] += 1;
}
GranaGuerra += 825+random(500);
}
}
}
//==================================[SUSPEITO MORTO]=========================//
if(WantedPoints[playerid] >= 1 && !IsPlayerInGuerra(playerid) && !IsACop(playerid) && !gPlayerInGuerra(playerid))
{
new price = WantedPoints[playerid] * 100;
if(IsACop(killerid))
{
GivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pJailed] = 24;
PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(100);
format(string, sizeof(string), "* Você está preso por %d Segundos na [Prisão La Sante], e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
WantedPoints[playerid] = 0;
SetPlayerWantedLevelEx(playerid, 0);
PlayerInfo[playerid][pAjustado] = false;
foreach(Player, i)
{
if(IsACop(i))
{
if(GetPlayerState(i) == 2)
{
PlayerPlaySound(i, 2134, 0.0, 0.0, 0.0);
}
else
{
PlayerPlaySound(i, 1039, 0.0, 0.0, 0.0);
}
format(string, sizeof string, "~w~Suspeito: ~p~%s ~r~Morto~n~Bonus~g~R$1000", NomePlayer(playerid));
GameTextForPlayer(i, string, 5000, 1);
GivePlayerMoney(i, 1000);
}
}
}
}
if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
{
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus[playerid] = CHECKPOINT_Nenhum;
}
new caller = Mobile[playerid];
if(caller != 255)
{
if(caller < 255)
{
SendClientMessage(caller, COLOR_GRAD2, "Morreram do outro lado da linha....");
CellTime[caller] = 0;
CellTime[playerid] = 0;
Mobile[caller] = 255;
}
Mobile[playerid] = 255;
CellTime[playerid] = 0;
}
ClearCrime(playerid);
if(PlayerInfo[playerid][pHeadValue] > 0 || PlayerInfo[playerid][pHeadValueT] > 0 || PlayerInfo[playerid][pHeadValueM] > 0)
{
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
if(GetPlayerOrg(killerid) == 8)
{
if(GoChase[killerid] == playerid)
{
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,sizeof string,"<< Um assassino cumpriu um contrato em %s, pelo preço de: R$%d >>",NomePlayer(playerid),PlayerInfo[playerid][pHeadValue]);
SendClientMessageToAll(COLOR_YELLOW, string);
format(string,sizeof string,"<< O Hitman %s matou você por um contrato de R$%d >>",NomePlayer(killerid),PlayerInfo[playerid][pHeadValue]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string,sizeof string,"* O assassino %s cumpriu um contrato em: %s.",NomePlayer(killerid),NomePlayer(playerid));
SendFamilyMessage(22, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
PlayerInfo[killerid][pContratos]++;
HitmanMatou++;
SetPlayerToTeamColor(killerid);
if(VendoNick[killerid] == false)
{
VendoNick[killerid] = true;
SendClientMessage(killerid, COLOR_GRAD1, "(( Você agora não está mais em modo secreto ))");
foreach(Player, i)
{
ShowPlayerNameTagForPlayer(i, killerid, true);
}
}
}
}
else if(GetPlayerOrg(killerid) == 22)
{
if(GoChase[killerid] == playerid)
{
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValueT]);
format(string,sizeof string,"<< Um assassino cumpriu um contrato em %s pelo preço de R$%d >>", NomePlayer(playerid),PlayerInfo[playerid][pHeadValueT]);
SendClientMessageToAll(COLOR_YELLOW, string);
format(string,sizeof string,"<< O Triad %s matou você por um contrato de R$%d, então não foi DM. >>",NomePlayer(killerid),PlayerInfo[playerid][pHeadValueT]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string,sizeof string,"* O assassino %s cumpriu um contrato em: %s.",NomePlayer(killerid),NomePlayer(playerid));
SendFamilyMessage(22, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValueT] = 0;
GotTri[playerid] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
PlayerInfo[killerid][pContratos]++;
TriadMatou++;
SetPlayerToTeamColor(killerid);
if(VendoNick[killerid] == false)
{
VendoNick[killerid] = true;
SendClientMessage(killerid, COLOR_GRAD1, "(( Você agora não está mais em modo secreto ))");
foreach(Player, i)
{
ShowPlayerNameTagForPlayer(i, killerid, true);
}
}
}
}
}
}
killerid = INVALID_PLAYER_ID;
return true;
}
Code:
BPS::SetPlayerSpawn(playerid)
{
new string[128];
if(gPlayerLogged[playerid])
{
showBalao(playerid, "Para abrir seu Inventario use a tecla 'N'", 5000);
pmorto[playerid] = false;
SetPVarInt(playerid,"roped",0);
SetPVarInt(playerid,"chop_id",-1);
if(PlayerInfo[playerid][pTut] == 0)
{
TogglePlayerSpectating(playerid, true);
gNoticias[playerid] = 1;
gFam[playerid] = 1;
Controle(playerid, 0);
RegistrationStep[playerid] = 1;
ClearChatbox(playerid, 8);
SetPlayerCameraPos( playerid, 1425.6246, -912.0739, 84.8901 );
SetPlayerCameraLookAt( playerid, 1424.7957, -902.5995, 81.8000 );
SetPlayerPos(playerid, 1446.6510,-807.7561,84.2902);
SetPlayerInterior(playerid, 0);
PlayerPlaySound(playerid,1039,0.0,0.0,0.0);
SetPlayerVirtualWorld(playerid,playerid+1);
ShowPlayerDialog(playerid,9,DIALOG_STYLE_MSGBOX,"Escolha seu sexo:","\n{FF0000}Escolha seu sexo corretamente\n\nOBS: você não terá outra chance de escolher seu sexo\n","Homem","Mulher");
return true;
}
if(PlayerInfo[playerid][pBan] > 0)
{
SendClientMessage(playerid, COLOR_DBLUE, "SERVER: Você foi desbanido do servidor, tenha um bom jogo!");
PlayerInfo[playerid][pBan] = 0;
}
if(VendoNick[playerid] == false)
{
VendoNick[playerid] = true;
SendClientMessage(playerid, COLOR_GRAD1, "(( Você agora não está mais em modo secreto ))");
foreach(Player, i)
{
ShowPlayerNameTagForPlayer(i, playerid, true);
}
}
if(PlayerPaintballing[playerid] != 0)
{
new rand;
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 31, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
HouseEntered[playerid] = 500;
SetPlayerVirtualWorld(playerid, 0);
if(!EmailValido(PlayerInfo[playerid][pEmail]) && PlayerInfo[playerid][pReg])
{
format(string, sizeof string, "{FF0000}Olá %s, digite seu email corretamente, pois ele poderá servir para você trocar sua senha", NomePlayer(playerid));
ShowPlayerDialog(playerid, 2828, DIALOG_STYLE_INPUT, "Digite seu email", string, "Validar", "");
}
if(sincronizando[playerid])
{
return true;
}
if(GetPVarInt(playerid, "inArena") == 1)
{
new rand;
rand = random(sizeof(ArenaTreinoSpawns));
SetPlayerPos(playerid, ArenaTreinoSpawns[rand][0], ArenaTreinoSpawns[rand][1], ArenaTreinoSpawns[rand][2]);
SetPlayerFacingAngle(playerid, ArenaTreinoSpawns[rand][3]);
SetPlayerInterior(playerid, 10);
SetPlayerVirtualWorld(playerid, 0);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 25, 999);
GivePlayerWeapon(playerid, 31, 999);
GivePlayerWeapon(playerid, 34, 999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SetPVarInt(playerid, "inArena", 1);
ChatKill[playerid] = true;
SendClientMessage(playerid, COLOR_GREEN, "Você está em uma Arena de Treinos , Casó queirá sair procure um icone de uma arma e aperte 'F'");
return 1;
}
if(PlayerInfo[playerid][pJailed] > 0 && PlayerInfo[playerid][pJailTime] > 0)
SetPlayerSkin(playerid, 268);
if(helpertrampando[playerid] == 1)
{
SetPlayerPos(playerid,-322.2288,1547.3700,75.5625);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "~w~HQ -HELPER ", 5000, 1);
SendClientMessage(playerid, COR_HELPER, "Você é um Helper em modo ajuda e nasceu na HQ dos Helpers!");
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(admtrampando[playerid] == 1)
{
SetPlayerPos(playerid,-322.4057,1537.4697,75.5625);
SetPlayerInterior(playerid,0);
GameTextForPlayer(playerid, "~w~HQ ADM ", 5000, 1);
SendClientMessage(playerid, 0xFF00FFAA, "Você é um Admin em modo ajuda e nasceu na HQ dos Admin!");
PlayerInfo[playerid][pInt] = 0;
return true;
}
if(PlayerInfo[playerid][pHospital] == true)
{
SetPlayerInterior(playerid, 15), SetPlayerVirtualWorld(playerid, 0);
new camasrandom = random(sizeof(CamasHospital));
SetPlayerPos(playerid, CamasHospital[camasrandom][0], CamasHospital[camasrandom][1], CamasHospital[camasrandom][2]);
SetTimerEx("micongela",2000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, CamasHospital[camasrandom][3]), camaid[playerid] = camasrandom;
ApplyAnimation(playerid,"CRACK","crckidle2",4.1,0,1,1,1,0);
PlayerTextDrawSetString(playerid, TextHospital[playerid], "---");
PlayerTextDrawShow(playerid, TextHospital[playerid]);
return false;
}
if(PlayerInfo[playerid][pTempoHospital] > 0 && PlayerInfo[playerid][pJailed] == 0)
{
if(!admtrampando[playerid] && !helpertrampando[playerid])
{
new dia, mes, ano, hora, minuto, segundo;
getdate(ano, mes, dia);
gettime(hora, minuto, segundo);
PlayerInfo[playerid][pHospital] = true;
PlayerInfo[playerid][pHAjustado] = false;
HospId[playerid] = 999;
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "Você morreu e será internado no hospital regional mais proximo de você.");
SendClientMessage(playerid, TEAM_BALLAS_COLOR, "Uma equipe médica ira cuidar de você até que você se recupere totalmente.");
format(string, sizeof string, "Faltam %d segundos para você receber alta do hospital regional de Los Santos, custo: R$-300", PlayerInfo[playerid][pTempoHospital], customorte[playerid]);
SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);
if(PlayerInfo[playerid][pJailed] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, " Você morreu para um policial, com nível de procura, ao receber alta do hospital irá direto para prisão!");
SpawnPlayer(playerid);
return 1;
}
}
ResetPlayerWeapons(playerid);
PlayerInfo[playerid][pDeaths] += 1;
return 1;
}
PlayerInfo[playerid][pLocal] = 255;
GetPlayerName(playerid, sendername, sizeof(sendername));
new Float:px,Float:py,Float:pz;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
if(PlayerInfo[playerid][pLuta] == 1)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
}
if(PlayerInfo[playerid][pLuta] == 2)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
}
if(PlayerInfo[playerid][pLuta] == 3)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
}
if(PlayerInfo[playerid][pLuta] == 4)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
}
if(PlayerInfo[playerid][pLuta] == 5)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
}
if(PlayerInfo[playerid][pLuta] == 6)
{
SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
}
if(PlayerInfo[playerid][pJailed] > 0)
{
PlayerCuffed[playerid] = 0;
RemovePlayerAttachedObject(playerid, 4);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
ResetPlayerWeapons(playerid);
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 264.1557,77.4240,1001.0391); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
storeexit[playerid] = 66;
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
if(PlayerInfo[playerid][pJailed] == 27)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 264.1557,77.4240,1001.0391); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
storeexit[playerid] = 67;
SetPlayerVirtualWorld(playerid, 1);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
new House = PlayerInfo[playerid][pPHousekey];
new House2 = PlayerInfo[playerid][pPhousekey];
if(PlayerInfo[playerid][pJailed] == 24)
{
new rdon = random(sizeof(SpawnPrisao));
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, SpawnPrisao[rdon][0], SpawnPrisao[rdon][1], SpawnPrisao[rdon][2]);
SetPlayerFacingAngle(playerid, SpawnPrisao[rdon][3]);
SetTimerEx("micongela",2000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 33)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 223.4674,110.9308,999.0156); // presão na Policia Civil
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 354.5019);
SetPlayerVirtualWorld(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 198.1241,174.9942,1003.0234); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 2.2642);
storeexit[playerid] = 2;
SetPlayerVirtualWorld(playerid, 1);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
if(PlayerInfo[playerid][pJailed] == 11)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 198.1241,174.9942,1003.0234); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 2.2642);
storeexit[playerid] = 11;
SetPlayerVirtualWorld(playerid, 2);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
if(PlayerInfo[playerid][pJailed] == 16)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 198.1241,174.9942,1003.0234); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 2.2642);
storeexit[playerid] = 16;
SetPlayerVirtualWorld(playerid, 16);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
VozDePrisao[playerid] = 0;
return true;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1293.2203,490.5885,11.1953);
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Prisão");
return true;
}
if(PlayerInfo[playerid][pJailed] == 9)
{
SetPlayerInterior(playerid, 5);
if(PlayerInfo[playerid][pAgendado] == 1)
{
format(string, sizeof(string), "O Admin %s agendou você para (%d minutos de cadeia e %d avisos), reason: %s",
PlayerInfo[playerid][pAdminAgendou], PlayerInfo[playerid][pTempoAgendado], PlayerInfo[playerid][pWarns], PlayerInfo[playerid][pMotivoAgendou]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
PlayerInfo[playerid][pAgendado] = 0;
if(PlayerInfo[playerid][pWarns] >= 3)
{
format(string, sizeof(string), "AdmCmd: %s foi banido por (%d dias) automaticamente, reason: %s",NomePlayer(playerid), PlayerInfo[playerid][pWarns], PlayerInfo[playerid][pMotivoAgendou]);
SendClientMessageToAll(COLOR_LIGHTRED, string);
tban(playerid, PlayerInfo[playerid][pWarns], "Automatico", PlayerInfo[playerid][pMotivoAgendou]);
PlayerInfo[playerid][pWarns] = 0;
SetPlayerPos(playerid, 324.4164,306.3444,999.1484);
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Cadeia!");
return 1;
}
}
SetPlayerPos(playerid, 324.4164,306.3444,999.1484);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sentença incompleta,Você voltou para Cadeia!");
return true;
}
if(House != 500 && PlayerInfo[playerid][pSpawn] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[House][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[House][hWorld]);
SetPlayerPos(playerid, HouseInfo[House][hExitx], HouseInfo[House][hExity],HouseInfo[House][hExitz]); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
PlayerInfo[playerid][pLocal] = House;
PlayerInfo[playerid][pInt] = HouseInfo[House][hInt];
HouseEntered[playerid] = House;
return true;
}
if(House2 != 500 && PlayerInfo[playerid][pSpawn] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,HouseInfo[House][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[House][hWorld]);
SetPlayerPos(playerid, HouseInfo[House][hExitx], HouseInfo[House][hExity],HouseInfo[House][hExitz]); // Warp the player
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
PlayerInfo[playerid][pLocal] = House;
PlayerInfo[playerid][pInt] = HouseInfo[House][hInt];
HouseEntered[playerid] = House2;
return true;
}
if(PlayerInfo[playerid][pSHealth] > 0.0)
SetPlayerHealth(playerid, PlayerInfo[playerid][pSHealth]);
switch(GetPlayerOrg(playerid))
{
case 1://Policia Militar a
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1529.4567,-1671.7179,6.2188);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 2://ROTA Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 327.9110,-1514.2948,36.0391);
SetPlayerFacingAngle(playerid,51.1759);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 3://Exército Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1522.0642,478.4109,7.1875);
SetPlayerFacingAngle(playerid, 359.3457);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
}
case 4://MEDICO Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1173.2349,-1323.3892,15.3946);
SetPlayerFacingAngle(playerid,274.0541);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
}
case 5://Aztecas Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 316.1400,-1771.1389,4.6898);
SetPlayerFacingAngle(playerid,181.4693);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 6://Rifa Spawn
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,952.2974, -912.0679,45.7656);
SetPlayerFacingAngle(playerid,183.3116);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 7://Prefeito Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1124.6989,-2036.8206,69.8835);
SetPlayerFacingAngle(playerid, 179.8064);
PlayerInfo[playerid][pInt] = 0;
SetPlayerArmour(playerid, 100);
SetPlayerWantedLevelEx(playerid, 0);
}
case 8: //Hitmans Nascimento
{
SetPlayerPos(playerid, 1103.7292,-301.5847,73.9851);
SetPlayerFacingAngle(playerid,270.1619);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 9: //Repórters Nascimento
{
SetPlayerPos(playerid, 735.3049,-1350.8284,13.5000);
SetPlayerVirtualWorld(playerid,0);
GivePlayerWeapon(playerid, 43, 120);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 10:// Taxistas Nascimento
{
SetPlayerPos(playerid, 1753.6158,-1894.1035,13.5571);
SetPlayerFacingAngle(playerid,91.0692);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 11://Policia Federal Nascimento
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -49.8879,-270.3193,6.6332);
SetPlayerFacingAngle(playerid,2.3139);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
}
case 12://Mafia russa Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2652.7959,-1990.8031,13.5541);
SetPlayerFacingAngle(playerid,0.7705);
PlayerInfo[playerid][pInt] = 0;
}
case 13://Yakuza Nascimento
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 689.8130,-1275.9388,13.5594);
SetPlayerFacingAngle(playerid,270.8986);
PlayerInfo[playerid][pInt] = 0;
}
case 14: //Groove Nascimento
{
SetPlayerPos(playerid, 2516.1411,-1675.4065,13.9113);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 15: //GI Nascimento
{
SetPlayerPos(playerid, 426.1718,2536.5134,16.5469);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 16: //SWAT Nascimento
{
SetPlayerPos(playerid, 2340.2998,2456.8318,14.9688);
SetPlayerFacingAngle(playerid, 1.5211);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerWantedLevelEx(playerid, 0);
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 17: //Ballas Membros Nascimento
{
SetPlayerPos(playerid, 1154.4968,-1180.8517,32.8187);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 18: //Vagos Nascimento
{
SetPlayerPos(playerid, 2808.3562,-1176.4606,25.3687);
SetPlayerFacingAngle(playerid, 178.1808);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 19: //Comando Vermelho
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1004.3689,-1431.8511,13.5469);
SetPlayerFacingAngle(playerid,4.3961);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 20: //Bombeiros Spawn
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1782.9727,-1806.9298,13.5275);
SetPlayerFacingAngle(playerid,90.5526);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 21: //PCC Nascimento
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2232.2180,-1458.5508,24.0173);
SetPlayerVirtualWorld(playerid,0);
SetPlayerFacingAngle(playerid,352.1631);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 22: //Triads Nascimento
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2770.6521,-1628.1273,12.1775);
SetPlayerVirtualWorld(playerid,0);
SetPlayerFacingAngle(playerid,179.4098);
PlayerInfo[playerid][pInt] = 0;
}
case 23: //Guerrilheiros Israelitas Nascimento
{
SetPlayerPos(playerid, -2281.6396,2288.4011,4.9699);
SetPlayerFacingAngle(playerid,181.3263);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 24: //Guerrilheiros Israelitas Nascimento
{
SetPlayerPos(playerid, 479.5927,-1538.4657,19.3843);
SetPlayerFacingAngle(playerid,117.8966);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 25: //Mercenarios Nascimento
{
SetPlayerPos(playerid, 854.6616, -603.8771,18.4219);
SetPlayerFacingAngle(playerid,174.3997);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 26: //Crips Nascimento
{
SetPlayerPos(playerid, 2333.3872,-1921.6781,12.4714);
SetPlayerFacingAngle(playerid,179.5836);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 27: //Destroyers Spawn
{
SetPlayerPos(playerid, 1322.9606, -875.6656,39.5781);
SetPlayerFacingAngle(playerid,180.2383);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 28: //Hells spawn
{
SetPlayerPos(playerid, 681.6184,-474.1958,16.5363);
SetPlayerFacingAngle(playerid,1.5626);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
case 29: //Forças Especiais Spawn
{
SetPlayerPos(playerid, -2059.5703,-859.9753,32.1719);
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid,312.4816);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 30: //Guerrilheiros Israelitas Nascimento
{
SetPlayerPos(playerid, -2059.1130,393.0208,35.1719);
SetPlayerFacingAngle(playerid,181.3263);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 31: //Guerrilheiros Israelitas Nascimento
{
SetPlayerPos(playerid, -2681.2629,636.5414,14.4531);
SetPlayerFacingAngle(playerid,181.3263);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 32: //Guerrilheiros Israelitas Nascimento
{
SetPlayerPos(playerid, -2274.6904,533.6465,35.0494);
SetPlayerFacingAngle(playerid,181.3263);
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
case 33://Policia Civil
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 611.0753,-585.4783,17.2266);
SetPlayerFacingAngle(playerid,359.0599);
PlayerInfo[playerid][pInt] = 0;
}
case 34://BOPE
{
SetPlayerVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1226.1434,-1815.2418,16.5938);
SetPlayerFacingAngle(playerid,285.5956);
PlayerInfo[playerid][pInt] = 0;
//Equipamentos
SetPlayerHealth(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 65);
GivePlayerWeapon(playerid, 25, 25);
}
default://--------- Spawn Civil --------------------
{
SetPlayerPos(playerid,1218.8640,-1692.4941,19.7344);
SetPlayerFacingAngle(playerid, 181.3263);
SetPlayerSkin(playerid, 37);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
}
if(PlayerInfo[playerid][pEmprego] == 17){
SetPlayerPos(playerid, 1554.5713,-1069.3436,953.1434);
SetTimerEx("micongela",1000,false,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid, 92.0759);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
GivePlayerWeapon(playerid, 3, 1);
SetPlayerSkin(playerid, 8);
}
SetCameraBehindPlayer(playerid);
}
return 1;
}