[Ajuda] Da uma ajudinha ae
#1

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 '-'

PHP код:
public SetPlayerUnjail()
{
    if(
PaintballPlayers >= && PaintballRornd != && StartingPaintballRornd != 1)
    {
        
StartingPaintballRornd 1;
           
SetTimer("PreparePaintball"300000);
    }
    if(
KartingPlayers >= && KartingRornd != && StartingKartRornd != 1)
    {
        
StartingKartRornd 1;
        
SetTimer("PrepareKarting"150000);
    }
    if(
KartingRornd != && KartingPlayers 2)
    {
        
StartingKartRornd 0;
        
KartingRornd 0;
        
EndingKartRornd 1;
    }
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            new 
level PlayerInfo[i][pLevel];
            new 
vip PlayerInfo[i][pVIP];
            if(
level >= && level <= 2) { PlayerInfo[i][pSalario] += 3; }
            else if(
level >= && level <= 4) { PlayerInfo[i][pSalario] += 4; }
            else if(
level >= && level <= 6) { PlayerInfo[i][pSalario] += 5; }
            else if(
level >= && level <= 8) { PlayerInfo[i][pSalario] += 6; }
            else if(
level >= && 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] > && WantAdvogado[i] == 0)
                {
                    
PlayerInfo[i][pJailTime]--;
                }
                if(
PlayerInfo[i][pJailTime] <= && WantAdvogado[i] == 0)
                {
                    
PlayerInfo[i][pJailTime] = 0;
                    if(
PlayerInfo[i][pJailed] == 1)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 3)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 4)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 5)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 6)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 7)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i,1801.0963,-1578.2200,14.0625);
                    }
                    else if(
PlayerInfo[i][pJailed] == 8)
                    {
                        
SetPlayerInterior(i0);
                        
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(i0);
                        
SetPlayerPos(i90.2101,1920.4854,17.9422);
                    }
                    else if(
PlayerInfo[i][pJailed] == 9)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i1539.6094,-1694.4749,13.5469);
                    }
                    else if(
PlayerInfo[i][pJailed] == 10)
                    {
                        
SetPlayerInterior(i0);
                        
SetPlayerPos(i1801.0963,-1578.2200,14.0625);
                    }
                    
PlayerInfo[i][pJailed] = 0;
                    
SendClientMessage(iCOLOR_GRAD1,"Vocк pagou sua divida com a sociedade.");
                    
GameTextForPlayer(i"~g~Livre~n~~w~Nгo cometa mais crimes"50001);
                    
SetPlayerChatBubble(i"*"COLOR_RED11);
                    
skinneg[i] = GetPlayerSkin(i);
                    if(
gTeam[i] == 4) { gTeam[i] = 3; }
                    
ClearCrime(i);
                    
SetPlayerToTeamColor(i);
                    }
            }
            if(
TendoGuerra == 0)
            {
            
TextDrawHideForPlayer(iDominandotr[i]);
            }
            if(
TendoGuerra >= 1)
            {
            new 
string[128];
            new 
org GetPlayerOrg(i);
            if(
org == || org == 15 || org == 3)
            {
            
TextDrawShowForPlayer(iDominandotr[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(iCOLOR_LIGHTRED"Vocк quer um Advogado? (Digite sim ou nao)");
                }
                
WantAdvogado[i] ++;
                if(
WantAdvogado[i] == 8)
                {
                    
SendClientMessage(iCOLOR_LIGHTRED"Vocк quer um Advogado? (Digite sim ou nao)");
                }
                if(
WantAdvogado[i] == 15)
                {
                    
SendClientMessage(iCOLOR_LIGHTRED"Vocк quer um Advogado? (Digite sim ou nao)");
                }
                if(
WantAdvogado[i] == 20)
                {
                    
SendClientMessage(iCOLOR_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(i0);
                    
SetPlayerInterior(i0);
                    
SetPlayerPos(i1558.7385,-1675.7007,16.1953);
                    
SetPlayerCameraPos(i1506.7966,-1645.9325,22.3203);
                    
SetPlayerCameraLookAt(i1537.1453,-1670.2620,12.6740);
                    
ClearChatbox(i100);
                    
PlayerPlaySound(i10520.00.00.0);
                    
GameTextForPlayer(i"~d~ ~w~.::SEJA BEM VINDO AO BPS::. ~d~"80003);
                       
SendClientMessage(iCOLOR_YELLOW".:: Bem Vindo ao Brasil PlayScript ::. ");
                     
SendClientMessage(iCOR_GRO"Este servidor foi feito para vocк se divertir com algumas regras!");
                    
SendClientMessage(iCOR_GRO"Tudo o que nуs fizemos foi para que vocк jogue com muita vontade de nгo parar de jogar!");
                    
SendClientMessage(iCOR_GRO"Aqui vocк vai ter uma segunda vida, com amigos,casamentos,trбfico,roubo,sequestros,etc...");
                     
SendClientMessage(iCOR_GRO"Nossa equipe estб disposta a te ajudar, vamos fazer o possivel para agrada-los");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 17)
                {
                    
TogglePlayerControllable(i0);
                    
ClearChatbox(i100);
                    
SetPlayerPos(i1445.7968,-1013.8732,84.8623);
                    
SetPlayerCameraPos(i1445.7968,-1013.8732,84.8623);
                    
SetPlayerCameraLookAt(i1448.4425,-828.7502,65.0811);
                    
PlayerPlaySound(i10520.00.00.0);
                    
SendClientMessage(iCOLOR_YELLOW".:: Informaзхes Bбsicas ::.");
                    
SendClientMessage(iCOR_GRO"Nosso servidor й estilo RPG");
                    
SendClientMessage(iCOLOR_YELLOW".:: Oque й RPG? :..");
                    
SendClientMessage(iCOR_GRO"Й um modo de jogo baseado na vida real, portanto vocк nгo poderб sair matando por ai.");
                    
SendClientMessage(iCOR_GRO"Nem zuando de todos, vocк tem que fazer tudo baseando na vida real!");
                    
SendClientMessage(iCOR_GRO"Entгo leve nosso servidor a sйrio e jogue como se fosse sua segunda vida!");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 30)
                {
                    
TogglePlayerControllable(i0);
                    
ClearChatbox(i100);
                    
SetPlayerPos(i155.3532,-1950.0986,47.8750);
                    
SetPlayerCameraPos(i155.3532,-1950.0986,47.8750);
                    
SetPlayerCameraLookAt(i239.0924,-1768.7030,25.8640);
                    
PlayerPlaySound(i10520.00.00.0);
                    
GameTextForPlayer(i"~h~~g~~d~.::Regras Basicas ::.~d~"50003);
                       
GameTextForPlayer(i"~d~ ~w~.::REGRAS BASICAS::. ~d~"80003);
                       
SendClientMessage(iCOLOR_YELLOW".:: Regras Bбsicas ::.");
                    
SendClientMessage(iCOR_GRO"Sempre respeite um admin, ele estб fazendo o melhor por vocк.");
                    
SendClientMessage(iCOR_GRO"Nгo Faзa DM(Matar sem Motivo) | Nunca Faзa DB(Atirar de dentro de um carro em quem estб apй)");
                    
SendClientMessage(iCOR_GRO"E o principal, nunca use xiter para se beneficiar, em caso de uso de xiter serб banido imediatamente.");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 44)
                {
                    
TogglePlayerControllable(i0);
                    
ClearChatbox(i100);
                    
SetPlayerPos(i1270.5867,-904.4370,121.9164);
                    
SetPlayerCameraPos(i1270.5867,-904.4370,121.9164);
                    
SetPlayerCameraLookAt(i1266.5298,-809.7008,87.5622);
                    
PlayerPlaySound(i10520.00.00.0);
                    
GameTextForPlayer(i"~d~ ~w~.::COMANDOS UTEIS::. ~d~"80003);
                       
SendClientMessage(iCOLOR_YELLOW".:: Comando Uteis ::.");
                    
SendClientMessage(iCOR_GRO"Antes de tudo digite T(abrir chat)");
                    
SendClientMessage(iCOR_GRO"/relatorio - Falar com os administradores");
                    
SendClientMessage(iCOR_GRO"/rg - Ver seus status, /gps - Se localizar pela cidade.");
                    
SendClientMessage(iCOR_GRO"/ajuda - vocк tem aqui todos esses comandos e mais alguns que vocк utilizarб.");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 58)
                {
                    
TogglePlayerControllable(i0);
                    
ClearChatbox(i100);
                    
SetPlayerPos(i1270.5867,-904.4370,121.9164);
                    
SetPlayerCameraPos(i1270.5867,-904.4370,121.9164);
                    
SetPlayerCameraLookAt(i1266.5298,-809.7008,87.5622);
                    
PlayerPlaySound(i10520.00.00.0);
                    
GameTextForPlayer(i"~d~ ~w~.::SISTEMAS VIPS & SOCIOS::. ~d~"80003);
                       
SendClientMessage(iCOLOR_YELLOW"|.:: Sistema VIP's & Sociуs ::.|");
                    
SendClientMessage(iCOR_GRO"VIP's : Bronze = 5 Reais | Prata = 10 Reais | Ouro = 15 Reais");
                    
SendClientMessage(iCOR_GRO"Sуcios : Bronze = 18 Reais | Prata = 21 Reais | Ouro = 25 Reais");
                    
SendClientMessage(iCOR_GRO"Veja tudo sobre as Contas VIP's no /site");
                    
SendClientMessage(iCOR_GRO"....:>.www.brasilplayscript.forumeiros.com<:....");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 74)
                {
                    
TogglePlayerControllable(i0);
                    
ClearChatbox(i100);
                    
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(i10520.00.00.0);
                    
GameTextForPlayer(i"~d~ ~w~.:: SEJA BEM VINDO AO BPS ::. ~d~"80003);
                    
SendClientMessage(iCOLOR_YELLOW"Seja bem vindo ao nosso Brasil PlayScript RPG");
                    
SendClientMessage(iCOR_GRO"Sua presenзa aqui й muito importante para nуs!");
                    
SendClientMessage(iCOR_GRO"Vocкs sгo o futuro do nosso servidor :D.");
                    
SendClientMessage(iCOLOR_LIGHTRED"|___________________________________________________________________________|");
                }
                else if(
TutTime[i] == 87)
                {
                    
TogglePlayerControllable(i1);
                    
ClearChatbox(i100);
                     
TutTime[i] = 0PlayerInfo[i][pTut] = 1;
                    
gNews[i] = 0gFam[i] = 0;
                    
TogglePlayerControllable(i1);
                    
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(i50000);
                    
SendClientMessage(i0xFFD700FF"============================================");
                    
SendClientMessage(iCOLOR_LIGHTBLUE"IP:198.50.168.206:7887");
                    
SendClientMessage(iCOR_GRO"Servidor: Brasil Play Script");
                    
SendClientMessage(iCOR_GRO"WebSite: www.brasilplayscript.forumeiros.com");
                    
SendClientMessage(iCOR_GRO"Suporte TeamSpeakі: Em Breve");
                    
SendClientMessage(i0xFFD700FF"============================================");
                }
            }
            if(
PlayerTazeTime[i] >= 1)
            {
                
PlayerTazeTime[i] += 1;
                if(
PlayerTazeTime[i] == 15)
                {
                    
PlayerTazeTime[i] = 0;
                }
                else
                {
                    new 
Float:angle;
                    
GetPlayerFacingAngle(iangle);
                    
SetPlayerFacingAngle(iangle 90);
                }
            }
            if(
PlayerDrunk[i] >= 5)
            {
                
PlayerDrunkTime[i] += 1;
                if(
PlayerDrunkTime[i] == 8)
                {
                    
PlayerDrunkTime[i] = 0;
                    
PlayerDrunk[i] = 0;
                    new 
Float:angle;
                    
GetPlayerFacingAngle(iangle);
                    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(iangle);
                    if(
IsPlayerInAnyVehicle(i))
                    {
                        if(
GetPlayerState(i) == 2)
                        {
                            
SetVehicleZAngle(GetPlayerVehicleID(i), angle 25);
                        }
                    }
                    else
                    {
                        
SetPlayerFacingAngle(iangle 90);
                    }
                }
            }
            if(
BoxWaitTime[i] > 0)
            {
                if(
BoxWaitTime[i] >= BoxDelay)
                {
                    
BoxDelay 0;
                    
BoxWaitTime[i] = 0;
                    
PlayerPlaySound(i10570.00.00.0);
                    
GameTextForPlayer(i"~g~A Luta Comeзou"50001);
                    
TogglePlayerControllable(i1);
                    
RorndStarted 1;
                }
                else
                {
                    
format(gstringsizeof(gstring), "%d"BoxDelay BoxWaitTime[i]);
                    
GameTextForPlayer(igstring15006);
                    
BoxWaitTime[i] += 1;
                }
            }
            if(
RorndStarted 0)
            {
                if(
PlayerBoxing[i] > 0)
                {
                    new 
trigger 0;
                    new 
Lost 0;
                    new 
Float:angle;
                    new 
Float:health;
                    
GetPlayerHealth(ihealth);
                    if(
health 12)
                    {
                        if(
== Boxer1) { Lost 1trigger 1; }
                        else if(
== Boxer2) { Lost 2trigger 1; }
                    }
                    if(
health 28) { GetPlayerFacingAngle(iangle); SetPlayerFacingAngle(iangle 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(Boxer1765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2765.8433,3.2924,1000.7186);
                                
SetPlayerInterior(Boxer15); SetPlayerInterior(Boxer25);
                                
GetPlayerName(Boxer1losersizeof(loser));
                                
GetPlayerName(Boxer2winnersizeof(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(TBoxertitelsizeof(titel));
                                                new 
nstring[MAX_PLAYER_NAME];
                                                
format(nstringsizeof(nstring), "%s"titel);
                                                
strmid(Titel[TitelName], nstring0strlen(nstring), 255);
                                                
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
                                                
Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
                                                
SaveBoxer();
                                                
format(gstringsizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s e agora й campeгo.",  titelloser);
                                                
OOCNews(COLOR_WHITE,gstring);
                                            }
                                            else
                                            {
                                                
SendClientMessage(Boxer2COLOR_GREY" Vocк precisa ser um lutador de boxe para ganhar uma luta!");
                                            }
                                        }
                                        else
                                        {
                                            
GetPlayerName(TBoxertitelsizeof(titel));
                                            
format(gstringsizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s.",  titelloser);
                                            
OOCNews(COLOR_WHITE,gstring);
                                            
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
                                            
Titel[TitelLoses] = PlayerInfo[Boxer2][pLoses];
                                            
SaveBoxer();
                                        }
                                    }
                                }
//TBoxer
                                
format(gstringsizeof(gstring), " Vocк perdeu a luta contra %s."winner);
                                
SendClientMessage(Boxer1COLOR_LIGHTBLUEgstring);
                                
GameTextForPlayer(Boxer1"~r~Voce Perdeu"35001);
                                
format(gstringsizeof(gstring), " Vocк ganhou a luta contra %s."loser);
                                
SendClientMessage(Boxer2COLOR_LIGHTBLUEgstring);
                                
GameTextForPlayer(Boxer2"~r~Voce Venceu"35001);
                                if(
GetPlayerHealth(Boxer1health) < 20)
                                {
                                    
SendClientMessage(Boxer1COLOR_LIGHTBLUE" Vocк estб exausto da luta, vб se recuperar.");
                                    
SetPlayerHealth(Boxer130.0);
                                }
                                else
                                {
                                    
SendClientMessage(Boxer1COLOR_LIGHTBLUE" Vocк continua em bom estado apуs a luta.");
                                    
SetPlayerHealth(Boxer150.0);
                                }
                                if(
GetPlayerHealth(Boxer2health) < 20)
                                {
                                    
SendClientMessage(Boxer2COLOR_LIGHTBLUE" Vocк estб exausto da luta, vб se recuperar.");
                                    
SetPlayerHealth(Boxer230.0);
                                }
                                else
                                {
                                    
SendClientMessage(Boxer2COLOR_LIGHTBLUE" Vocк continua em bom estado apуs a luta.");
                                    
SetPlayerHealth(Boxer250.0);
                                }
                                
GameTextForPlayer(Boxer1"~g~Fim da Luta"50001); GameTextForPlayer(Boxer2"~g~Fim da Luta"50001);
                                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(Boxer1765.8433,3.2924,1000.7186); SetPlayerPos(Boxer2765.8433,3.2924,1000.7186);
                                
SetPlayerInterior(Boxer15); SetPlayerInterior(Boxer25);
                                
GetPlayerName(Boxer1winnersizeof(winner));
                                
GetPlayerName(Boxer2losersizeof(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(TBoxertitelsizeof(titel));
                                                new 
nstring[MAX_PLAYER_NAME];
                                                
format(nstringsizeof(nstring), "%s"titel);
                                                
strmid(Titel[TitelName], nstring0strlen(nstring), 255);
                                                
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
                                                
Titel[TitelLoses] = PlayerInfo[TBoxer][pLoses];
                                                
SaveBoxer();
                                                
format(gstringsizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s e agora й o campeгo.",  titelloser);
                                                
OOCNews(COLOR_WHITE,gstring);
                                            }
                                            else
                                            {
                                                
SendClientMessage(Boxer1COLOR_GREY" Vocк precisa ser um lutador de boxe para ganhar uma luta!");
                                            }
                                        }
                                        else
                                        {
                                            
GetPlayerName(TBoxertitelsizeof(titel));
                                            
format(gstringsizeof(gstring), "Noticias do Boxe: %s venceu a luta contra %s.",  titelloser);
                                            
OOCNews(COLOR_WHITE,gstring);
                                            
Titel[TitelWins] = PlayerInfo[TBoxer][pWins];
                                            
Titel[TitelLoses] = PlayerInfo[Boxer1][pLoses];
                                            
SaveBoxer();
                                        }
                                    }
                                }
//TBoxer
                                
format(gstringsizeof(gstring), " Vocк perdeu a luta contra %s."winner);
                                
SendClientMessage(Boxer2COLOR_LIGHTBLUEgstring);
                                
GameTextForPlayer(Boxer2"~r~Voce Perdeu"35001);
                                
format(gstringsizeof(gstring), " Vocк ganhou a luta contra %s."loser);
                                
SendClientMessage(Boxer1COLOR_LIGHTBLUEgstring);
                                
GameTextForPlayer(Boxer1"~g~Voce Venceu"35001);
                                if(
GetPlayerHealth(Boxer1health) < 20)
                                {
                                    
SendClientMessage(Boxer1COLOR_LIGHTBLUE" Vocк estб exausto da luta, vб se recuperar.");
                                    
SetPlayerHealth(Boxer130.0);
                                }
                                else
                                {
                                    
SendClientMessage(Boxer1COLOR_LIGHTBLUE" Vocк continua em bom estado apуs a luta.");
                                    
SetPlayerHealth(Boxer150.0);
                                }
                                if(
GetPlayerHealth(Boxer2health) < 20)
                                {
                                    
SendClientMessage(Boxer2COLOR_LIGHTBLUE" Vocк estб exausto da luta, vб se recuperar.");
                                    
SetPlayerHealth(Boxer230.0);
                                }
                                else
                                {
                                    
SendClientMessage(Boxer2COLOR_LIGHTBLUE" Vocк continua em bom estado apуs a luta.");
                                    
SetPlayerHealth(Boxer250.0);
                                }
                                
GameTextForPlayer(Boxer1"~g~Fim da luta"50001); GameTextForPlayer(Boxer2"~g~Fim da luta"50001);
                                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 == && AnnorncedPaintballRornd == 0)
            {
                
AnnorncedPaintballRornd 1;
                if(
PlayerPaintballing[i] != 0)
                {
                    
SendClientMessage(iCOLOR_YELLOW"Paintball serб anunciado em 30 segundos (Para obter mais jogadores).");
                }
            }
            if(
StartingKartRornd == && AnnorncedKartRornd == 0)
            {
                
AnnorncedKartRornd 1;
                if(
PlayerKarting[i] != && PlayerInKart[i] != 0)
                {
                    
SendClientMessage(iCOLOR_YELLOW"Corrida de Kart serб anunciada em 15 segundos (Para obter mais Corredores de Kart).");
                }
            }
            if(
EndingKartRornd == 1)
            {
                if(
PlayerKarting[i] != && 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], XYZ);
                        
SetPlayerCheckpoint(iXYZ5);
                    }
                }
            }
            if(
BusCallTime[i] > 0)
            {
                if(
BusAccepted[i] < 999)
                {
                    if(
IsPlayerConnected(BusAccepted[i]))
                    {
                        new 
Float:X,Float:Y,Float:Z;
                        
GetPlayerPos(BusAccepted[i], XYZ);
                        
SetPlayerCheckpoint(iXYZ5);
                    }
                }
            }
            if(
MedicCallTime[i] > 0)
            {
                if(
MedicAccepted[i] < 999)
                {
                    if(
IsPlayerConnected(MedicAccepted[i]))
                    {
                        new 
Float:X,Float:Y,Float:Z;
                        
GetPlayerPos(MedicAccepted[i], XYZ);
                        
SetPlayerCheckpoint(iXYZ5);
                    }
                }
            }
            if(
CopsrondaCallTime[i] > 0)
            {
                if(
CopsrondaAccepted[i] < 999)
                {
                    if(
IsPlayerConnected(CopsrondaAccepted[i]))
                    {
                        new 
Float:X,Float:Y,Float:Z;
                        
GetPlayerPos(CopsrondaAccepted[i], XYZ);
                        
SetPlayerCheckpoint(iXYZ5);
                    }
                }
            }
            if(
MechanicCallTime[i] > 0)
            {
                if(
MechanicAccepted[i] < 999)
                {
                    if(
IsPlayerConnected(MechanicAccepted[i]))
                    {
                        new 
Float:X,Float:Y,Float:Z;
                        
GetPlayerPos(MechanicAccepted[i], XYZ);
                        
SetPlayerCheckpoint(iXYZ5);
                    }
                }
            }
            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(i1);
                    
PlayerCuffed[i] = 0;
                    
PlayerCuffedTime[i] = 0;
                    
PlayerTazeTime[i] = 1;
                }
                else
                {
                    
PlayerCuffedTime[i] -= 1;
                }
            }
        }
    }

Reply


Messages In This Thread
Da uma ajudinha ae - by goku114 - 12.04.2014, 03:01

Forum Jump:


Users browsing this thread: 1 Guest(s)