[AJUDA]Leiam
#1

Pessoal, eu nгo sei mais oque fazer, jб procurei de todas as formas, queria abaixar o valor do sбlario no PayDay, e colocar o imposto pra ser cobrado, pois ja coloquei imposto de 500$, e no payday sу fica aquele nъmero maldito, o nъmero 0, e eu queria abaixar o salario do pay day pra 500 no minimo a 1400 no mбximo...

olha o cуdigo do imposto...

pawn Код:
{
                        ebill = 0;
                    }
                    interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
                    PlayerInfo[i][pExp]++;
                    PlayerPlayMusic(i);
                    PlayerInfo[i][pAccount] = account+interest;
                    SendClientMessage(i, COLOR_WHITE, "|___ Sбlario___|");
                    format(string, sizeof(string), "  Salario: $%d   Imposto: -$%d", checks, TaxValue);
                    SendClientMessage(i, COLOR_GRAD1, string);
                    if(PlayerInfo[i][pPhousekey] != NONE_CAR || PlayerInfo[i][pPbiskey] != 255)
                    {
                        format(string, sizeof(string), "  Electricidade: -$%d", ebill);
                        SendClientMessage(i, COLOR_GRAD1, string);
                    }
                    format(string, sizeof(string), "  Saldo Bancario: $%d", account);
                    SendClientMessage(i, COLOR_GRAD1, string);
                    format(string, sizeof(string), "  Juros: 0.%d Por Cento",tmpintrate);
                    SendClientMessage(i, COLOR_GRAD2, string);
                    format(string, sizeof(string), "  Valor Ganho com Juros: $%d", interest);
                    SendClientMessage(i, COLOR_GRAD3, string);
                    SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
                    format(string, sizeof(string), "  Novo saldo: $%d", PlayerInfo[i][pAccount]);
                    SendClientMessage(i, COLOR_GRAD5, string);
                    format(string, sizeof(string), "  Aluguel: -$%d", rent);
                    SendClientMessage(i, COLOR_GRAD5, string);
                    format(string, sizeof(string), "~y~Payday");
                    GameTextForPlayer(i, string, 5000, 1);
                    rent = 0;
                    PlayerInfo[i][pPayDay] = 0;
                    PlayerInfo[i][pPayCheck] = 0;
                    PlayerInfo[i][pConnectTime] += 1;
                    if(PlayerInfo[i][pDonateRank] > 0)
                    {
Reply
#2

Imposto: Entгo, entre no game, vire lider prefetura, /ajudaemprego, e veja o comando e seta a tacha
Reply
#3

Sim, sу que quando digito /imposto e o valor, o valor nгo pega na hora do pay day, ele nгo й cobrado, e jб tentei no comando e nгo consigo...
Reply
#4

Tente assim, para resolver o do imposto
pawn Код:
{
                        ebill = 0;
                    }
                    interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
                    PlayerInfo[i][pExp]++;
                    PlayerPlayMusic(i);
                    PlayerInfo[i][pAccount] = account+interest;
                    SendClientMessage(i, COLOR_WHITE, "|___ Sбlario___|");
                    format(string, sizeof(string), "  Salario: $%d   Imposto: -$500", checks);
                    SendClientMessage(i, COLOR_GRAD1, string);
                                                                GivePlayerMoneyEx(playerid, -50);
                    if(PlayerInfo[i][pPhousekey] != NONE_CAR || PlayerInfo[i][pPbiskey] != 255)
                    {
                        format(string, sizeof(string), "  Electricidade: -$%d", ebill);
                        SendClientMessage(i, COLOR_GRAD1, string);
                    }
                    format(string, sizeof(string), "  Saldo Bancario: $%d", account);
                    SendClientMessage(i, COLOR_GRAD1, string);
                    format(string, sizeof(string), "  Juros: 0.%d Por Cento",tmpintrate);
                    SendClientMessage(i, COLOR_GRAD2, string);
                    format(string, sizeof(string), "  Valor Ganho com Juros: $%d", interest);
                    SendClientMessage(i, COLOR_GRAD3, string);
                    SendClientMessage(i, COLOR_GRAD4, "|--------------------------------------|");
                    format(string, sizeof(string), "  Novo saldo: $%d", PlayerInfo[i][pAccount]);
                    SendClientMessage(i, COLOR_GRAD5, string);
                    format(string, sizeof(string), "  Aluguel: -$%d", rent);
                    SendClientMessage(i, COLOR_GRAD5, string);
                    format(string, sizeof(string), "~y~Payday");
                    GameTextForPlayer(i, string, 5000, 1);
                    rent = 0;
                    PlayerInfo[i][pPayDay] = 0;
                    PlayerInfo[i][pPayCheck] = 0;
                    PlayerInfo[i][pConnectTime] += 1;
                    if(PlayerInfo[i][pDonateRank] > 0)
                    {
Reply
#5

Bom parece que funfou...
Vocк sabe como resolve um bug, assim quando o lнder morre, ou reloga a skin volta a de lнder?
Exemplo: Ele vai na binco e troca de skin, quando ele morre a skin dele volta a de lнder...
Reply
#6

Nunca vi esse bug, mas pode postar a public OnPlayerDeath?'-'
Reply
#7

Aqui estб...
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME];
    new string[256];
    //new dmessage[256];
    //new deathreason[20];
    new playercash;
    new victimteam;
    new Float:px,Float:py,Float:pz;
    new killerteam;

    victimteam = gTeam[playerid];
    killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    GetPlayerPos(playerid, px, py, pz);
    new GTRID = GetPlayerTerritorio(playerid);
    if(GTRID != NONE_TR)
    {
        new killerorg;
        if(PlayerInfo[killerid][pMember] > 0)
        {
            killerorg = PlayerInfo[killerid][pMember];
        }
        if(PlayerInfo[killerid][pLeader] > 0)
        {
            killerorg = PlayerInfo[killerid][pLeader];
        }
        new org;
        if(PlayerInfo[playerid][pMember] > 0)
        {
            org = PlayerInfo[playerid][pMember];
        }
        if(PlayerInfo[playerid][pLeader] > 0)
        {
            org = PlayerInfo[playerid][pLeader];
        }
        if(Territorio[GTRID][TRGuerra] >= 1)
        {
            if(Territorio[GTRID][OrgGuerra] == killerorg)
            {
                if(IsPlayerInTerritorio(playerid,GTRID) && IsPlayerInTerritorio(killerid,GTRID))
                {
                    if(Territorio[GTRID][DonoTR] == org)
                    {
                        PontosTR[GTRID][killerorg] += 120;
                    }
                }
            }
            if(Territorio[GTRID][DonoTR] == killerorg)
            {
                if(IsPlayerInTerritorio(playerid,GTRID) && IsPlayerInTerritorio(killerid,GTRID))
                {
                    if(Territorio[GTRID][OrgGuerra] == org)
                    {
                        PontosTR[GTRID][killerorg] += 120;
                    }
                }
            }
        }
    }
    if(Morro[Guerra] >= 1)
    {
        new org = GetPlayerOrg(playerid);
        new killerorg = GetPlayerOrg(killerid);
        if(OrgPodeGuerriarMorro(playerid,org) && OrgPodeGuerriarMorro(killerid,killerorg))
        {
            if(IsPlayerInMorro(playerid) && IsPlayerInMorro(killerid))
            {
                MorroPontos[killerorg] += 80;
            }
        }
        if(OrgPodeGuerriarCastelo(playerid,org) && OrgPodeGuerriarCastelo(killerid,killerorg))
        {
            if(IsPlayerInCastelo(playerid) && IsPlayerInCastelo(killerid))
            {
                CasteloPontos[killerorg] += 80;
            }
        }
    }
    if(killerid != 255)
    {
        if(GetPlayerState(killerid) == 2)
        {
            format(string,sizeof(string),"Atenзгo:[%d]%s cometeu DB em %s e serб kikado pelo Admin.",killerid,pNome(killerid),pNome(playerid));
            SendClientMessageToAll(COLOR_LIGHTRED,string);
        }
    }
    if(reason == 38)
    {
        new kstring[256];
        new kickname[MAX_PLAYER_NAME];
        if(IsPlayerConnected(killerid))
        {
            GetPlayerName(killerid, kickname, sizeof(kickname));
            format(string, 256, "AdmWarning: [%d]%s acabou de matar um player com uma minugun /tv nele",killerid,kickname);
            ABroadCast(COLOR_YELLOW,string,1);
            printf("%s", kstring);
        }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
        DisablePlayerCheckpoint(playerid);
        gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    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(PlayerPaintballing[playerid] != 0)
    {
        PlayerPaintballKills[killerid] ++;
        if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
        {
            new killer[MAX_PLAYER_NAME];
            PaintballWinner = killerid;
            PaintballWinnerKills = PlayerPaintballKills[killerid];
            GetPlayerName(killerid, killer, sizeof(killer));
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerPaintballing[i] != 0)
                    {
                        format(string, sizeof(string), "* %s esta na lideranзa com %d Mortes.",killer,PaintballWinnerKills);
                        SendClientMessage(i, COLOR_WHITE, string);
                    }
                }
            }
        }
        return 1;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
        if(IsPlayerConnected(killerid))
        {
            if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
            {
                new killer[MAX_PLAYER_NAME];
                new dier[MAX_PLAYER_NAME];
                GetPlayerName(playerid, dier, sizeof(dier));
                GetPlayerName(killerid, killer, sizeof(killer));
                format(string, sizeof(string), "* %s has performed a Character Kill on you, you aren't able to play with this Character anymore.",killer);
                SendClientMessage(playerid, COLOR_LIGHTRED, string);
                format(string, sizeof(string), "** %s cumpriu contrato em %s **",killer,dier);
                CKLog(string);
                PlayerInfo[playerid][pCK] = 1;
                if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
                else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
                if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
                else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
                KickPlayer[playerid] = 1;
            }
        }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
        if(IsPlayerConnected(killerid))
        {
            if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLeader] == 18)
            {
                if(GoChase[killerid] == playerid)
                {
                    ConsumingMoney[killerid] = 1;
                    new killer[MAX_PLAYER_NAME];
                    GetPlayerName(killerid, killer, sizeof(killer));
                    GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]);
                    format(string,128,"<< Assasino %s Cumpriu o contrato em %s e recebeu $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
                    SendFamilyMessage(18, COLOR_YELLOW, string);
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                    PlayerInfo[playerid][pHeadValue] = 0;
                    GotHit[playerid] = 0;
                    GetChased[playerid] = 999;
                    GoChase[killerid] = 999;
                }
            }
        }
    }
    if(victimteam >= 4)
    {
        if(IsPlayerConnected(killerid))
        {
            //new killer[MAX_PLAYER_NAME];
            //GetPlayerName(killerid, killer, sizeof(killer));
            new slice = 100; //$100
            playercash = GetPlayerMoneyEx(playerid);
            if(gTeam[killerid] != 2) { WantedPoints[killerid] += 2; } //+ 2 wanted points
            if(SafeTime[playerid] <= 0)
            {
                if(gTeam[killerid] != gTeam[playerid])
                {
                    if(GetPlayerState(killerid) == 1)
                    {
                        PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
                    }
                    else
                    {
                        PlayerInfo[killerid][pKills]++;
                    }
                    PlayerInfo[playerid][pKills]--;
                }
            }
            /*if (strlen(deathreason) > 0)// patch
            {
                if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])//med kill criminal
                {
                    format(string, sizeof(string), ".: %s murdered %s. (%s) :.", killer, name, deathreason);
                }
                else
                {
                    format(string, sizeof(string), ".: %s murdered %s. (%s) for $%d :.", killer, name, deathreason, slice);
                }

            }
            else
            {
                if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
                {
                    format(string, sizeof(string), ".: %s murdered %s :.", killer, name);
                }
                else
                {
                    format(string, sizeof(string), ".: %s murdered %s for $%d :.", killer, name, slice);
                }
            }*/

            if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
            {
                slice = 0;
            }
            if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))//no team kill
            {
                slice = 0;
            }
            if (playercash > 0)
            {
                GivePlayerMoneyEx(playerid, -slice);
            }
            else
            {
                slice = slice+500;
            }
            GivePlayerMoneyEx(killerid, slice);
            //GameTextForPlayer(playerid, dmessage, 5000, 2);
            PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
            if (((gTeam[killerid]) == 3) && reason != 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Assasinato");
                }
            }
            else if (((gTeam[killerid]) == 3) && reason == 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Fuga");
                }
            }
        }
    }
    else if (victimteam == 2)
    {
        if(IsPlayerConnected(killerid))
        {
            //new killer[MAX_PLAYER_NAME];
            //GetPlayerName(killerid, killer, sizeof(killer));
            // Cop kill
            PlayerInfo[playerid][pKills]--;
            if (gTeam[killerid] == 2)//cops kill cop
            {
                //format(string,128,".: Officer %s murdered Officer %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                GivePlayerMoneyEx(killerid, -suecost);
                GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
            }
            else
            {
                //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
            }
            if (gTeam[killerid] >= 3)
            {
                WantedPoints[killerid] += 2; //+ 2 wanted points
                if(reason != 49)
                {
                    if(!IsACop(killerid))
                    {
                        SetPlayerCriminal(killerid,255, "Assasinato");
                    }
                }
                else if (reason == 49)
                {
                    if(!IsACop(killerid))
                    {
                        SetPlayerCriminal(killerid,255, "Fuga");
                    }
                }
            }
            if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
            {
                if(GetPlayerState(killerid) == 1)
                {
                    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
                }
                else
                {
                    PlayerInfo[killerid][pKills]++;
                }
                WantedPoints[killerid]+=2;
            }
            //BroadCast(COLOR_RED, string);
        }
    }
    else if (victimteam == 3)
    {
        if(IsPlayerConnected(killerid))
        {
            //new killer[MAX_PLAYER_NAME];
            //GetPlayerName(killerid, killer, sizeof(killer));
            // Civ kill
            if ((gTeam[killerid]) == 2)//cops kill civ
            {
                if(WantedLevel[playerid] < 1)
                {
                    //format(string,128,".: Officer %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
                    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                    GivePlayerMoneyEx(killerid, -suecost);
                    GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
                }
            }
            else
            {
                //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
                WantedPoints[killerid] += 2;
            }
            if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Assasinato");
                }
            }
            else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Fuga");
                }
            }
            //BroadCast(COLOR_RED, string);
        }
    }
    else if (victimteam == 1)
    {
        if(IsPlayerConnected(killerid))
        {
            //new killer[MAX_PLAYER_NAME];
            //GetPlayerName(killerid, killer, sizeof(killer));
            // Civ kill
            if ((gTeam[killerid]) == 2)//cops kill civ
            {
                //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                GivePlayerMoneyEx(killerid, -suecost);
                GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
            }
            else if ((gTeam[killerid]) == 1)//med kill civ
            {
                //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for $%d :.",killer,name,deathreason,suecost);
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                GivePlayerMoneyEx(killerid, -suecost);
                GivePlayerMoneyEx(playerid, suecost+100);//+100pays hospital bill
            }
            else
            {
                //format(string,128,".: %s murdered %s (%s) :.",killer,name,deathreason);
            }
            if (((gTeam[killerid]) == 4) && reason != 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Assasinato");
                }
            }
            else if (((gTeam[killerid]) == 3) && reason == 49)
            {
                if(!IsACop(killerid))
                {
                    SetPlayerCriminal(killerid,255, "Fuga");
                }
            }
            //BroadCast(COLOR_RED, string);
        }
    }
    if (victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
        SetPlayerFree(playerid,killerid, "Foi morto");
    }
    killerid = INVALID_PLAYER_ID;
    return 1;
}
Reply
#8

Nгo tem nada ai, poderia postar o OnPlayerSpawn & SetPlayerSpawn?'-'
Reply
#9

OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    CheckInfoOrg(playerid);
    new string[256];
    new plname[MAX_PLAYER_NAME];
    TextDrawShowForPlayer(playerid, TForum[playerid]);
    //InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
        gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0)
    {
        //SendClientMessage(playerid, COLOR_LIGHTRED, "** Voce precisa logar antes do Spawn (Kickado) **");
        //KickPlayer[playerid] = 1;
        GetPlayerName(playerid, plname, sizeof(plname));
        format(string, sizeof(string), "Contas/%s.ini", plname);
        if(fexist(string))
        {
            gPlayerAccount[playerid] = 1;
            GetPlayerName(playerid,plname,sizeof(plname));
            format(string,sizeof(string),"%s Seja Bem Vindo ao\nBrasil Stylle RPG Digite sua Senha para Logar!",plname);
            //SendClientMessage(playerid, COLOR_YELLOW2,string);
            //SendClientMessage(playerid, COLOR_YELLOW2, "Vocк й um(a) Jogador Registrado para logar digite /logar [senha]");
            //SendClientMessage(playerid, COLOR_YELLOW2, "Brasil Stylle RPG: Seu nick esta registrado, E so Logar");
            ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Login", string, "Logar", "Sair");
            return 1;
        }
        else
        {
            gPlayerAccount[playerid] = 0;
            GetPlayerName(playerid,plname,sizeof(plname));
            format(string,sizeof(string),"%s Seja Bem Vindo ao\nBrasil Stylle RPG Digite sua Senha para Registrar!",plname);
            //SendClientMessage(playerid, COLOR_YELLOW2,string);
            //SendClientMessage(playerid, COLOR_YELLOW2, "Vocк ainda nгo estб registrado para registrar digite /registrar [senha]");
            //SendClientMessage(playerid, COLOR_YELLOW2, "Brasil Stylle RPG: Este nick nao esta cadastrado, Se Cadastre Para Jogar");
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
            return 1;
        }
    }
    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
        SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й mas um lнder agora vocк й civil");
        PlayerInfo[playerid][pTeam] = 3;
        gTeam[playerid] = 3;
        SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        PlayerInfo[playerid][pModel] = CIV[rand];
        SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 5)
    {
        if(PlayerInfo[playerid][pMember] < 1)
        {
            MedicBill[playerid] = 0;
            new rand = random(sizeof(CIV));
            SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um membro da familia, Voce e um Civil!");
            PlayerInfo[playerid][pTeam] = 3;
            gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            PlayerInfo[playerid][pModel] = CIV[rand];
            SpawnPlayer(playerid);
        }
    }
    if(gTeam[playerid] == 10)
    {
        if(PlayerInfo[playerid][pMember] != 8)
        {
            MedicBill[playerid] = 0;
            new rand = random(sizeof(CIV));
            SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um membro da Agencia, Voce e um Civil!");
            PlayerInfo[playerid][pTeam] = 3;
            gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            PlayerInfo[playerid][pModel] = CIV[rand];
            SpawnPlayer(playerid);
        }
    }
    if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
        SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um Oficial, Voce e um Civil!");
        PlayerInfo[playerid][pTeam] = 3;
        gTeam[playerid] = 3;
        SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        PlayerInfo[playerid][pModel] = CIV[rand];
        SpawnPlayer(playerid);
    }
    /*if(gTeam[playerid] == 3)
    {
        if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
        {
            MedicBill[playerid] = 0;
            new model = PlayerInfo[playerid][pChar];
            if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
            //SpawnPlayer(playerid);
        }
    }*/

    if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
    else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    SetPlayerToTeamColor(playerid);
    SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    PlayerFixRadio(playerid);
    PoderosoInfo[playerid][pSpawnado] = 1;
    /*for(new i = 0; i < sizeof(Turfs); i++)
    {
        GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
    }*/

    return 1;
}
SetPlayerSpawn
pawn Код:
public SetPlayerSpawn(playerid)
{
    new string[256];
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pTut] == 0)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1139.58,-1764.54,29.09);
            SetPlayerFacingAngle(playerid, 266.1588);
            SetPlayerVirtualWorld(playerid,0);
            gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            TogglePlayerControllable(playerid, 0);
            RegistrationStep[playerid] = 1;
            //SendClientMessage(playerid, COLOR_YELLOW, "Bem-vindo ao Brasil Stylle RPG, por favor preencha algumas informacoes para prosseguir.");
            //SendClientMessage(playerid, COLOR_LIGHTRED, "Voce e Homem ou Mulher?");
            format(string,sizeof(string),"~b~       Seja Bem Vindo~n~~w~Agora voce tem que preencher~n~Algumas informacoes necessarias~n~Para completar seu Cadastro.~n~E depois acompanhara,~n~O Tutorial Esplicando como~n~Ser um bom Jogador.");
            TextDrawSetString(TutuText[playerid], string);
            TextDrawHideForPlayer(playerid, TutuBox[playerid]);
            TextDrawHideForPlayer(playerid, TutuText[playerid]);
            TextDrawShowForPlayer(playerid, TutuBox[playerid]);
            TextDrawShowForPlayer(playerid, TutuText[playerid]);
            ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Brasil Stylle RPG", "Escolha Seu Sexo Por Favor.\nNгo esqueзa de Ler as\nInformaзхes de Auto Ajuda\nAparece no canto Esquerdo do Monitor!", "Masculino", "Femino");
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            SendClientMessage(playerid,COLOR_GREEN," ");
            SendClientMessage(playerid,COLOR_GREEN," ");
            SendClientMessage(playerid,COLOR_WHITE,"______________________________________________________________________________");
            SendClientMessage(playerid,COLOR_YELLOW,"Seja Bem vindo ao Brasil STylle");
            format(string, sizeof(string),". : : | %s Seja bem vindo ao servidor | : : .", pNome(playerid));
            SendClientMessage(playerid,COR_GROOVE,string);
            SendClientMessage(playerid,COLOR_YELLOW,". : : | Vocк ganhou R$50000 de bonus por se registrar no servidor | : : .");
            SendClientMessage(playerid,COR_GROOVE,". : : | Por favor leia o tutorial com atenзгo | : : .");
            SendClientMessage(playerid,COLOR_WHITE,"______________________________________________________________________________");
            SendClientMessage(playerid,COLOR_GREEN," ");
            SendClientMessage(playerid,COLOR_GREEN," ");
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        new rand;
        new house = PlayerInfo[playerid][pPhousekey];
        if(PlayerPaintballing[playerid] != 0)
        {
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 29, 999);
            rand = random(sizeof(PaintballSpawns));
            SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 1)
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
            SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 2)
        {
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
            SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 3)
        {
            SetPlayerInterior(playerid, 3);
            SetPlayerPos(playerid,193.5507,174.3006,1003.0234);
            SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 4)
        {
            SetPlayerInterior(playerid, 10);
            SetPlayerPos(playerid,219.4918,109.6652,999.0156);
            SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
                if(PlayerInfo[playerid][pJailed] == 5)
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid,344.30,305.20,999.15);
            SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
        {
            new cut = PlayerInfo[playerid][pLevel]*deathcost; // ou deathcost
            GivePlayerMoneyEx(playerid, -500);
            format(string, sizeof(string), "Seu mйdico lhe cobrou 500$, tenha um bom dia", cut);
            SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
            MedicBill[playerid] = 0;
            MedicTime[playerid] = 0;
            NeedMedicTime[playerid] = 0;
            PlayerInfo[playerid][pDeaths] += 1;
            CofreOrg[13][Dinheiro] += cut;
            CofreOrg[14][Dinheiro] += cut;
        }
        if(house != NONE_CAR)
        {
            if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
            {
                SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
                SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                PlayerInfo[playerid][pLocal] = house;
                PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                PoderosoInfo[playerid][pSpawnado] = 1;
                return 1;
            }
        }
        if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// PM LS
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1530.7992,-1669.0005,6.2188);
            SetPlayerFacingAngle(playerid, 272.3188);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)// ROTA LS
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1530.7992,-1669.0005,6.2188);
            SetPlayerFacingAngle(playerid, 272.3188);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)// PM LV
        {
            SetPlayerInterior(playerid, 3);
            PlayerInfo[playerid][pInt] = 3;
            SetPlayerPos(playerid,246.0993,185.7880,1008.1719);
            SetPlayerFacingAngle(playerid, 353.8712);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)// PC
        {
            SetPlayerInterior(playerid, 3);
            PlayerInfo[playerid][pInt] = 3;
            SetPlayerPos(playerid,211.1279,186.5576,1003.0313);
            SetPlayerFacingAngle(playerid, 177.7632);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)// Exercito
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,-1522.22,478.43,7.19);
            SetPlayerFacingAngle(playerid, 180.1698);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)// Alqaeda
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,414.8741,2533.6211,19.1484);
            SetPlayerFacingAngle(playerid, 90.0002);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)// F.A.R.C
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,-491.3770,-193.8029,78.3474);
            SetPlayerFacingAngle(playerid, 0.6409);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)// Los Aztecas
        {
            SetPlayerVirtualWorld(playerid,1);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1675.1698,-2121.0886,13.5469);
            SetPlayerFacingAngle(playerid,316.1795);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)// Groove
        {
            SetPlayerVirtualWorld(playerid,1);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2495.3799,-1689.3333,14.3655);
            SetPlayerFacingAngle(playerid,1.6557);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)// Vagos
        {
            SetPlayerVirtualWorld(playerid,1);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2351.9451,-1168.7489,27.9805);
            SetPlayerFacingAngle(playerid,1.5253);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)// Ballas
        {
            SetPlayerVirtualWorld(playerid,1);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2090.9136,-1279.1019,26.1271);
            SetPlayerFacingAngle(playerid,182.9264);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)// Os Maiorais
        {
            SetPlayerVirtualWorld(playerid,1);
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 725.7486,-1438.9991,13.5391);
            SetPlayerFacingAngle(playerid,1.5702);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)// S.A.M.U (LS)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1177.9160,-1323.2394,14.0943);
            SetPlayerFacingAngle(playerid, 277.1077);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)// S.A.M.U (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1607.3260,1818.6774,10.8203);
            SetPlayerFacingAngle(playerid, 6.1621);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)// Los Santos News
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 735.9105,-1352.2034,13.5000);
            SetPlayerFacingAngle(playerid, 298.6588);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)// Las Venturas News
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1894.6057,1164.6492,10.8203);
            SetPlayerFacingAngle(playerid, 92.1980);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)// San Andreas News
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2269.5281,-75.7655,26.7724);
            SetPlayerFacingAngle(playerid, 182.8208);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)// Hitmans
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1103.3834,-299.2432,73.9851);
            SetPlayerFacingAngle(playerid, 90.4997);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)// Policia Federal
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, -1390.02,2638.46,55.98);
            SetPlayerFacingAngle(playerid, 82.3598);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)// Instrutor
        {
            SetPlayerInterior(playerid, 3);
            PlayerInfo[playerid][pInt] = 3;
            SetPlayerPos(playerid, -2027.5571,-104.4862,1035.1719);
            SetPlayerFacingAngle(playerid, 188.8397);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)// Taxista (LS)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1771.4291,-1895.0471,13.5548);
            SetPlayerFacingAngle(playerid, 270.1410);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2840.3606,1290.8441,11.3906);
            SetPlayerFacingAngle(playerid, 90.7402);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2145.3311,2834.6721,10.8203);
            SetPlayerFacingAngle(playerid, 91.7390);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2490.4626,918.6837,11.0234);
            SetPlayerFacingAngle(playerid, 84.0135);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 1947.7131,2068.8250,10.8203);
            SetPlayerFacingAngle(playerid, 85.6671);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2518.5771,2033.4734,11.1719);
            SetPlayerFacingAngle(playerid, 87.9608);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 2449.1343,1284.0663,11.1825);
            SetPlayerFacingAngle(playerid, 185.6749);
            SetPlayerVirtualWorld(playerid,0);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 0);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid,1515.37,-1845.92,13.55);
            SetPlayerFacingAngle(playerid,275.2902);
            SetPlayerVirtualWorld(playerid,1);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 3);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 357.3491,206.7505,1008.3828);
            SetPlayerFacingAngle(playerid,275.2902);
            SetPlayerVirtualWorld(playerid,2);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)// Taxista (LV)
        {
            SetPlayerInterior(playerid, 3);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerPos(playerid, 357.3491,206.7505,1008.3828);
            SetPlayerFacingAngle(playerid, 275.2902);
            SetPlayerVirtualWorld(playerid,3);
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pOrigin] == 1)//Los Santos
        {
            SetPlayerPos(playerid,1154.29,-1768.96,16.59);
            SetPlayerFacingAngle(playerid, 0.8003);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pOrigin] == 2)//Las Venturas
        {
            SetPlayerPos(playerid, 2454.2234,1499.3406,11.5704);
            SetPlayerFacingAngle(playerid, 131.0550);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
        if (PlayerInfo[playerid][pOrigin] == 3)//San Fierro em breve ^^
        {
            SetPlayerPos(playerid,1154.29,-1768.96,16.59);
            SetPlayerFacingAngle(playerid, 0.8003);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            PoderosoInfo[playerid][pSpawnado] = 1;
            return 1;
        }
    }
    return 1;
}
Bom isso nгo й um bug, й sу que eu queria isso, ao morrer ou relogar, a skin de lнder voltar, pois tem muitos lideres que muda skin...
Reply
#10

@diretor7, esse gamemode й o Law and Crime, ele foi roubado e postado na internet sem a autorizaзгo do seu criador.


O pessoal aqui do fуrum nгo ajuda quem usa ficheiros roubados...malz =/


PS: Se eu fosse vocк procurava outro gamemode para programar, pois aqueles que usam Law and Crime sem autorizaзгo sempre acabam mal. Entretando, se puder poste algo que prove que vocк pode usar esse gamemode .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)