12.04.2014, 03:01
bom eu queria que quando o player fosse solto saisse com a skin dele ou da org...
mas so que fica com a skin de preso.
й й base GF mesmo '-'
mas so que fica com a skin de preso.
й й base GF mesmo '-'
PHP код:
public SetPlayerUnjail()
{
if(PaintballPlayers >= 2 && PaintballRornd != 1 && StartingPaintballRornd != 1)
{
StartingPaintballRornd = 1;
SetTimer("PreparePaintball", 30000, 0);
}
if(KartingPlayers >= 2 && KartingRornd != 1 && StartingKartRornd != 1)
{
StartingKartRornd = 1;
SetTimer("PrepareKarting", 15000, 0);
}
if(KartingRornd != 0 && KartingPlayers < 2)
{
StartingKartRornd = 0;
KartingRornd = 0;
EndingKartRornd = 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new level = PlayerInfo[i][pLevel];
new vip = PlayerInfo[i][pVIP];
if(level >= 0 && level <= 2) { PlayerInfo[i][pSalario] += 3; }
else if(level >= 3 && level <= 4) { PlayerInfo[i][pSalario] += 4; }
else if(level >= 5 && level <= 6) { PlayerInfo[i][pSalario] += 5; }
else if(level >= 7 && level <= 8) { PlayerInfo[i][pSalario] += 6; }
else if(level >= 9 && level <= 10) { PlayerInfo[i][pSalario] += 7; }
else if(level >= 11 && level <= 12) { PlayerInfo[i][pSalario] += 8; }
else if(level >= 13 && level <= 14) { PlayerInfo[i][pSalario] += 9; }
else if(level >= 15 && level <= 16) { PlayerInfo[i][pSalario] += 10; }
else if(level >= 17 && level <= 18) { PlayerInfo[i][pSalario] += 11; }
else if(level >= 19 && level <= 20) { PlayerInfo[i][pSalario] += 12; }
else if(level >= 21) { PlayerInfo[i][pSalario] += 15; }
if(vip == 1) { PlayerInfo[i][pSalario] += 2; }
if(vip == 2) { PlayerInfo[i][pSalario] += 4; }
if(PlayerInfo[i][pJailed] > 0)
{
if(PlayerInfo[i][pJailTime] > 0 && WantAdvogado[i] == 0)
{
PlayerInfo[i][pJailTime]--;
}
if(PlayerInfo[i][pJailTime] <= 0 && WantAdvogado[i] == 0)
{
PlayerInfo[i][pJailTime] = 0;
if(PlayerInfo[i][pJailed] == 1)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 3)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 4)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 5)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 6)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 7)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 8)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
}
else if(PlayerInfo[i][pJailed] == 2)
{
SetPlayerWorldBounds(i,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(i, 0);
SetPlayerPos(i, 90.2101,1920.4854,17.9422);
}
else if(PlayerInfo[i][pJailed] == 9)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i, 1539.6094,-1694.4749,13.5469);
}
else if(PlayerInfo[i][pJailed] == 10)
{
SetPlayerInterior(i, 0);
SetPlayerPos(i, 1801.0963,-1578.2200,14.0625);
}
PlayerInfo[i][pJailed] = 0;
SendClientMessage(i, COLOR_GRAD1,"Vocк pagou sua divida com a sociedade.");
GameTextForPlayer(i, "~g~Livre~n~~w~Nгo cometa mais crimes", 5000, 1);
SetPlayerChatBubble(i, "*", COLOR_RED, 1, 1);
skinneg[i] = GetPlayerSkin(i);
if(gTeam[i] == 4) { gTeam[i] = 3; }
ClearCrime(i);
SetPlayerToTeamColor(i);
}
}
if(TendoGuerra == 0)
{
TextDrawHideForPlayer(i, Dominandotr[i]);
}
if(TendoGuerra >= 1)
{
new string[128];
new org = GetPlayerOrg(i);
if(org == 6 || org == 15 || org == 3)
{
TextDrawShowForPlayer(i, Dominandotr[i]);
format(string,sizeof(string),"~r~|| Guerra ||~n~~n~~b~Mortos Taliban: ~w~%d ~n~~n~~b~Mortos Al'qaeda: ~w~%d ~n~~n~~b~Mortos Exercito: ~w~%d" ,Territorio[talmortos], Territorio[almortos], Territorio[exemortos]);
TextDrawSetString(Dominandotr[i], string);
}
}
if(GetPlayerMoney(i) - CurrentMoney[i] >= 5000 && PlayerInfo[i][pAdmin] < 1)
{
if(ConsumingMoney[i])
{
CurrentMoney[i] = GetPlayerMoney(i);
ConsumingMoney[i] = 0;
}
else
{
CurrentMoney[i] = GetPlayerMoney(i);
}
}
else
{
CurrentMoney[i] = GetPlayerMoney(i);
}
if(UsedFind[i] >= 1)
{
UsedFind[i] += 1;
if(UsedFind[i] >= 120)
{
UsedFind[i] = 0;
}
}
if(WantAdvogado[i] >= 1)
{
CallAdvogado[i] = 111;
if(WantAdvogado[i] == 1)
{
SendClientMessage(i, COLOR_LIGHTRED, "Vocк quer um Advogado? (Digite sim ou nao)");
}
WantAdvogado[i] ++;
if(WantAdvogado[i] == 8)
{
SendClientMessage(i, COLOR_LIGHTRED, "Vocк quer um Advogado? (Digite sim ou nao)");
}
if(WantAdvogado[i] == 15)
{
SendClientMessage(i, COLOR_LIGHTRED, "Vocк quer um Advogado? (Digite sim ou nao)");
}
if(WantAdvogado[i] == 20)
{
SendClientMessage(i, COLOR_LIGHTRED, "Nгo Hб Advogados Online, sua sentenзa foi iniciada.");
WantAdvogado[i] = 0;
CallAdvogado[i] = 0;
}
}
if(TutTime[i] >= 1)
{
TutTime[i] += 1;
if(TutTime[i] == 5)
{
TogglePlayerControllable(i, 0);
SetPlayerInterior(i, 0);
SetPlayerPos(i, 1558.7385,-1675.7007,16.1953);
SetPlayerCameraPos(i, 1506.7966,-1645.9325,22.3203);
SetPlayerCameraLookAt(i, 1537.1453,-1670.2620,12.6740);
ClearChatbox(i, 100);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~d~ ~w~.::SEJA BEM VINDO AO BPS::. ~d~", 8000, 3);
SendClientMessage(i, COLOR_YELLOW, ".:: Bem Vindo ao Brasil PlayScript ::. ");
SendClientMessage(i, COR_GRO, "Este servidor foi feito para vocк se divertir com algumas regras!");
SendClientMessage(i, COR_GRO, "Tudo o que nуs fizemos foi para que vocк jogue com muita vontade de nгo parar de jogar!");
SendClientMessage(i, COR_GRO, "Aqui vocк vai ter uma segunda vida, com amigos,casamentos,trбfico,roubo,sequestros,etc...");
SendClientMessage(i, COR_GRO, "Nossa equipe estб disposta a te ajudar, vamos fazer o possivel para agrada-los");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 17)
{
TogglePlayerControllable(i, 0);
ClearChatbox(i, 100);
SetPlayerPos(i, 1445.7968,-1013.8732,84.8623);
SetPlayerCameraPos(i, 1445.7968,-1013.8732,84.8623);
SetPlayerCameraLookAt(i, 1448.4425,-828.7502,65.0811);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
SendClientMessage(i, COLOR_YELLOW, ".:: Informaзхes Bбsicas ::.");
SendClientMessage(i, COR_GRO, "Nosso servidor й estilo RPG");
SendClientMessage(i, COLOR_YELLOW, ".:: Oque й RPG? :..");
SendClientMessage(i, COR_GRO, "Й um modo de jogo baseado na vida real, portanto vocк nгo poderб sair matando por ai.");
SendClientMessage(i, COR_GRO, "Nem zuando de todos, vocк tem que fazer tudo baseando na vida real!");
SendClientMessage(i, COR_GRO, "Entгo leve nosso servidor a sйrio e jogue como se fosse sua segunda vida!");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 30)
{
TogglePlayerControllable(i, 0);
ClearChatbox(i, 100);
SetPlayerPos(i, 155.3532,-1950.0986,47.8750);
SetPlayerCameraPos(i, 155.3532,-1950.0986,47.8750);
SetPlayerCameraLookAt(i, 239.0924,-1768.7030,25.8640);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~h~~g~~d~.::Regras Basicas ::.~d~", 5000, 3);
GameTextForPlayer(i, "~d~ ~w~.::REGRAS BASICAS::. ~d~", 8000, 3);
SendClientMessage(i, COLOR_YELLOW, ".:: Regras Bбsicas ::.");
SendClientMessage(i, COR_GRO, "Sempre respeite um admin, ele estб fazendo o melhor por vocк.");
SendClientMessage(i, COR_GRO, "Nгo Faзa DM(Matar sem Motivo) | Nunca Faзa DB(Atirar de dentro de um carro em quem estб apй)");
SendClientMessage(i, COR_GRO, "E o principal, nunca use xiter para se beneficiar, em caso de uso de xiter serб banido imediatamente.");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 44)
{
TogglePlayerControllable(i, 0);
ClearChatbox(i, 100);
SetPlayerPos(i, 1270.5867,-904.4370,121.9164);
SetPlayerCameraPos(i, 1270.5867,-904.4370,121.9164);
SetPlayerCameraLookAt(i, 1266.5298,-809.7008,87.5622);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~d~ ~w~.::COMANDOS UTEIS::. ~d~", 8000, 3);
SendClientMessage(i, COLOR_YELLOW, ".:: Comando Uteis ::.");
SendClientMessage(i, COR_GRO, "Antes de tudo digite T(abrir chat)");
SendClientMessage(i, COR_GRO, "/relatorio - Falar com os administradores");
SendClientMessage(i, COR_GRO, "/rg - Ver seus status, /gps - Se localizar pela cidade.");
SendClientMessage(i, COR_GRO, "/ajuda - vocк tem aqui todos esses comandos e mais alguns que vocк utilizarб.");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 58)
{
TogglePlayerControllable(i, 0);
ClearChatbox(i, 100);
SetPlayerPos(i, 1270.5867,-904.4370,121.9164);
SetPlayerCameraPos(i, 1270.5867,-904.4370,121.9164);
SetPlayerCameraLookAt(i, 1266.5298,-809.7008,87.5622);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~d~ ~w~.::SISTEMAS VIPS & SOCIOS::. ~d~", 8000, 3);
SendClientMessage(i, COLOR_YELLOW, "|.:: Sistema VIP's & Sociуs ::.|");
SendClientMessage(i, COR_GRO, "VIP's : Bronze = 5 Reais | Prata = 10 Reais | Ouro = 15 Reais");
SendClientMessage(i, COR_GRO, "Sуcios : Bronze = 18 Reais | Prata = 21 Reais | Ouro = 25 Reais");
SendClientMessage(i, COR_GRO, "Veja tudo sobre as Contas VIP's no /site");
SendClientMessage(i, COR_GRO, "....:>.www.brasilplayscript.forumeiros.com<:....");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 74)
{
TogglePlayerControllable(i, 0);
ClearChatbox(i, 100);
SetPlayerCameraPos(i,1519.4929,-1675.6611,21.0900);
SetPlayerPos(i,1547.1060,-1693.2738,13.9214);
SetPlayerCameraLookAt(i,1557.2080,-1675.8904,16.1953);
PlayerPlaySound(i, 1052, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~d~ ~w~.:: SEJA BEM VINDO AO BPS ::. ~d~", 8000, 3);
SendClientMessage(i, COLOR_YELLOW, "Seja bem vindo ao nosso Brasil PlayScript RPG");
SendClientMessage(i, COR_GRO, "Sua presenзa aqui й muito importante para nуs!");
SendClientMessage(i, COR_GRO, "Vocкs sгo o futuro do nosso servidor :D.");
SendClientMessage(i, COLOR_LIGHTRED, "|___________________________________________________________________________|");
}
else if(TutTime[i] == 87)
{
TogglePlayerControllable(i, 1);
ClearChatbox(i, 100);
TutTime[i] = 0; PlayerInfo[i][pTut] = 1;
gNews[i] = 0; gFam[i] = 0;
TogglePlayerControllable(i, 1);
SetPlayerVirtualWorld(i,0);
MedicBill[i] = 0;
SetPlayerSpawn(i);
SetCameraBehindPlayer(i);
PlayerInfo[i][pConta] = 5000;
PlayerInfo[i][pCreditos] += 10;
PlayerPlayMusic(i);
RegistrationStep[i] = 2;
ResetPlayerMoney(i);
GivePlayerMoney(i, 50000);
SendClientMessage(i, 0xFFD700FF, "============================================");
SendClientMessage(i, COLOR_LIGHTBLUE, "IP:198.50.168.206:7887");
SendClientMessage(i, COR_GRO, "Servidor: Brasil Play Script");
SendClientMessage(i, COR_GRO, "WebSite: www.brasilplayscript.forumeiros.com");
SendClientMessage(i, COR_GRO, "Suporte TeamSpeakі: Em Breve");
SendClientMessage(i, 0xFFD700FF, "============================================");
}
}
if(PlayerTazeTime[i] >= 1)
{
PlayerTazeTime[i] += 1;
if(PlayerTazeTime[i] == 15)
{
PlayerTazeTime[i] = 0;
}
else
{
new Float:angle;
GetPlayerFacingAngle(i, angle);
SetPlayerFacingAngle(i, angle + 90);
}
}
if(PlayerDrunk[i] >= 5)
{
PlayerDrunkTime[i] += 1;
if(PlayerDrunkTime[i] == 8)
{
PlayerDrunkTime[i] = 0;
PlayerDrunk[i] = 0;
new Float:angle;
GetPlayerFacingAngle(i, angle);
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerState(i) == 2)
{
SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
}
}
else
{
ApplyAnimation(i,"PED", "WALK_DRUNK",4.0,0,1,0,0,0);
}
}
}
if(PlayerStoned[i] >= 2)
{
PlayerStoned[i] += 1;
if(PlayerStoned[i] == 10)
{
PlayerStoned[i] = 0;
new Float:angle;
GetPlayerFacingAngle(i, angle);
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerState(i) == 2)
{
SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25);
}
}
else
{
SetPlayerFacingAngle(i, angle + 90);
}
}
}
if(BoxWaitTime[i] > 0)
{
if(BoxWaitTime[i] >= BoxDelay)
{
BoxDelay = 0;
BoxWaitTime[i] = 0;
PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0);
GameTextForPlayer(i, "~g~A Luta Comeзou", 5000, 1);
TogglePlayerControllable(i, 1);
RorndStarted = 1;
}
else
{
format(gstring, sizeof(gstring), "%d", BoxDelay - BoxWaitTime[i]);
GameTextForPlayer(i, gstring, 1500, 6);
BoxWaitTime[i] += 1;
}
}
if(RorndStarted > 0)
{
if(PlayerBoxing[i] > 0)
{
new trigger = 0;
new Lost = 0;
new Float:angle;
new Float:health;
GetPlayerHealth(i, health);
if(health < 12)
{
if(i == Boxer1) { Lost = 1; trigger = 1; }
else if(i == Boxer2) { Lost = 2; trigger = 1; }
}
if(health < 28) { GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 85); }
if(trigger)
{
new winner[MAX_PLAYER_NAME];
new loser[MAX_PLAYER_NAME];
new titel[MAX_PLAYER_NAME];
if(Lost == 1)
{
if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
{
SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
GetPlayerName(Boxer1, loser, sizeof(loser));
GetPlayerName(Boxer2, winner, sizeof(winner));
if(PlayerInfo[Boxer1][pEmprego] == 7) { PlayerInfo[Boxer1][pLoses] += 1; }
if(PlayerInfo[Boxer2][pEmprego] == 7) { PlayerInfo[Boxer2][pWins] += 1; }
if(TBoxer < 255)
{
if(IsPlayerConnected(TBoxer))
{
if(TBoxer != Boxer2)
{
if(PlayerInfo[Boxer2][pEmprego] == 7)
{
TBoxer = Boxer2;
GetPlayerName(TBoxer, titel, sizeof(titel));
new nstring[MAX_PLAYER_NAME];
format(nstring, sizeof(nstring), "%s", titel);
strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
SaveBoxer();
format(gstring, sizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s e agora й campeгo.", titel, loser);
OOCNews(COLOR_WHITE,gstring);
}
else
{
SendClientMessage(Boxer2, COLOR_GREY, " Vocк precisa ser um lutador de boxe para ganhar uma luta!");
}
}
else
{
GetPlayerName(TBoxer, titel, sizeof(titel));
format(gstring, sizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s.", titel, loser);
OOCNews(COLOR_WHITE,gstring);
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
SaveBoxer();
}
}
}//TBoxer
format(gstring, sizeof(gstring), " Vocк perdeu a luta contra %s.", winner);
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(Boxer1, "~r~Voce Perdeu", 3500, 1);
format(gstring, sizeof(gstring), " Vocк ganhou a luta contra %s.", loser);
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(Boxer2, "~r~Voce Venceu", 3500, 1);
if(GetPlayerHealth(Boxer1, health) < 20)
{
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, " Vocк estб exausto da luta, vб se recuperar.");
SetPlayerHealth(Boxer1, 30.0);
}
else
{
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, " Vocк continua em bom estado apуs a luta.");
SetPlayerHealth(Boxer1, 50.0);
}
if(GetPlayerHealth(Boxer2, health) < 20)
{
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, " Vocк estб exausto da luta, vб se recuperar.");
SetPlayerHealth(Boxer2, 30.0);
}
else
{
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, " Vocк continua em bom estado apуs a luta.");
SetPlayerHealth(Boxer2, 50.0);
}
GameTextForPlayer(Boxer1, "~g~Fim da Luta", 5000, 1); GameTextForPlayer(Boxer2, "~g~Fim da Luta", 5000, 1);
if(PlayerInfo[Boxer2][pEmprego] == 7) { PlayerInfo[Boxer2][pBoxSkill] += 1; }
PlayerBoxing[Boxer1] = 0;
PlayerBoxing[Boxer2] = 0;
}
}
else if(Lost == 2)
{
if(IsPlayerConnected(Boxer1) && IsPlayerConnected(Boxer2))
{
SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer1, 5); SetPlayerInterior(Boxer2, 5);
GetPlayerName(Boxer1, winner, sizeof(winner));
GetPlayerName(Boxer2, loser, sizeof(loser));
if(PlayerInfo[Boxer2][pEmprego] == 7) { PlayerInfo[Boxer2][pLoses] += 1; }
if(PlayerInfo[Boxer1][pEmprego] == 7) { PlayerInfo[Boxer1][pWins] += 1; }
if(TBoxer < 255)
{
if(IsPlayerConnected(TBoxer))
{
if(TBoxer != Boxer1)
{
if(PlayerInfo[Boxer1][pEmprego] == 7)
{
TBoxer = Boxer1;
GetPlayerName(TBoxer, titel, sizeof(titel));
new nstring[MAX_PLAYER_NAME];
format(nstring, sizeof(nstring), "%s", titel);
strmid(Titel[TitelName], nstring, 0, strlen(nstring), 255);
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
SaveBoxer();
format(gstring, sizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s e agora й o campeгo.", titel, loser);
OOCNews(COLOR_WHITE,gstring);
}
else
{
SendClientMessage(Boxer1, COLOR_GREY, " Vocк precisa ser um lutador de boxe para ganhar uma luta!");
}
}
else
{
GetPlayerName(TBoxer, titel, sizeof(titel));
format(gstring, sizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s.", titel, loser);
OOCNews(COLOR_WHITE,gstring);
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
SaveBoxer();
}
}
}//TBoxer
format(gstring, sizeof(gstring), " Vocк perdeu a luta contra %s.", winner);
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(Boxer2, "~r~Voce Perdeu", 3500, 1);
format(gstring, sizeof(gstring), " Vocк ganhou a luta contra %s.", loser);
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, gstring);
GameTextForPlayer(Boxer1, "~g~Voce Venceu", 3500, 1);
if(GetPlayerHealth(Boxer1, health) < 20)
{
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, " Vocк estб exausto da luta, vб se recuperar.");
SetPlayerHealth(Boxer1, 30.0);
}
else
{
SendClientMessage(Boxer1, COLOR_LIGHTBLUE, " Vocк continua em bom estado apуs a luta.");
SetPlayerHealth(Boxer1, 50.0);
}
if(GetPlayerHealth(Boxer2, health) < 20)
{
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, " Vocк estб exausto da luta, vб se recuperar.");
SetPlayerHealth(Boxer2, 30.0);
}
else
{
SendClientMessage(Boxer2, COLOR_LIGHTBLUE, " Vocк continua em bom estado apуs a luta.");
SetPlayerHealth(Boxer2, 50.0);
}
GameTextForPlayer(Boxer1, "~g~Fim da luta", 5000, 1); GameTextForPlayer(Boxer2, "~g~Fim da luta", 5000, 1);
if(PlayerInfo[Boxer1][pEmprego] == 7) { PlayerInfo[Boxer1][pBoxSkill] += 1; }
PlayerBoxing[Boxer1] = 0;
PlayerBoxing[Boxer2] = 0;
}
}
InRing = 0;
RorndStarted = 0;
Boxer1 = 255;
Boxer2 = 255;
TBoxer = 255;
trigger = 0;
}
}
}
if(StartingPaintballRornd == 1 && AnnorncedPaintballRornd == 0)
{
AnnorncedPaintballRornd = 1;
if(PlayerPaintballing[i] != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Paintball serб anunciado em 30 segundos (Para obter mais jogadores).");
}
}
if(StartingKartRornd == 1 && AnnorncedKartRornd == 0)
{
AnnorncedKartRornd = 1;
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Corrida de Kart serб anunciada em 15 segundos (Para obter mais Corredores de Kart).");
}
}
if(EndingKartRornd == 1)
{
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
DisablePlayerCheckpoint(i);
CP[i] = 0;
}
}
if(TaxiCallTime[i] > 0)
{
if(TaxiAccepted[i] < 999)
{
if(IsPlayerConnected(TaxiAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(TaxiAccepted[i], X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(BusCallTime[i] > 0)
{
if(BusAccepted[i] < 999)
{
if(IsPlayerConnected(BusAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(BusAccepted[i], X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(MedicCallTime[i] > 0)
{
if(MedicAccepted[i] < 999)
{
if(IsPlayerConnected(MedicAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MedicAccepted[i], X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(CopsrondaCallTime[i] > 0)
{
if(CopsrondaAccepted[i] < 999)
{
if(IsPlayerConnected(CopsrondaAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(CopsrondaAccepted[i], X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(MechanicCallTime[i] > 0)
{
if(MechanicAccepted[i] < 999)
{
if(IsPlayerConnected(MechanicAccepted[i]))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(MechanicAccepted[i], X, Y, Z);
SetPlayerCheckpoint(i, X, Y, Z, 5);
}
}
}
if(Robbed[i] == 1)
{
if(RobbedTime[i] <= 0)
{
RobbedTime[i] = 0;
Robbed[i] = 0;
}
else
{
RobbedTime[i] -= 1;
}
}
if(PlayerCuffed[i] == 1)
{
if(PlayerCuffedTime[i] <= 0)
{
TogglePlayerControllable(i, 1);
PlayerCuffed[i] = 0;
PlayerCuffedTime[i] = 0;
PlayerTazeTime[i] = 1;
}
else
{
PlayerCuffedTime[i] -= 1;
}
}
}
}
}