[Ajuda]Mudar spawn admins
#1

Eu queria pedir uma ajudinha a vcs, eu queria mudar o spawn dos admins para eles nascerem em outro lugar
Se poder me ajudar ae Valeu.
Reply
#2

Poste o OnPlayerSpawn.
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) //Checa se o jogador й um NPC.
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
        if(!strcmp(npcname, "akz_master", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        {
            SetPlayerSkin(playerid, 94);
            return 1;
        }
        if(!strcmp(npcname, "akz_Evolution", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        {
            PutPlayerInVehicle(playerid, Random, 0);
            SetPlayerSkin(playerid, 281);
            GivePlayerWeapon(playerid, 30, 200);
            return 1;
        }
    }
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
    TextDrawShowForPlayer(playerid, TextdrawB);
    TextDrawShowForPlayer(playerid, tGP2[playerid]);

    InitLockDoors(playerid);
    SetPlayerHealth(playerid, 100);
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //S
    gGas[playerid] = 1;
    for(new i=0;i<sizeof(Turfs);i++)
    {
        for(new gangid; gangid < MAX_PLAYERS; gangid++)
        {
            if(TurfInfo[i][zMemberDie] == playerid)
            {
                if(PlayerInfo[gangid][pMember] == PlayerInfo[playerid][pMember])
                {
                    if(i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
                    if(i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
                    if(i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
                    if(i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
                    if(i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
                    if(i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
                }
                if(i == 0){GangZoneFlashForPlayer(gangid, i, TEAM_GROVE_COLOR);}
                if(i == 1){GangZoneFlashForPlayer(gangid, i, COLOR_YELLOW);}
                if(i == 2){GangZoneFlashForPlayer(gangid, i, TEAM_BALLAS_COLOR);}
                if(i == 3){GangZoneFlashForPlayer(gangid, i, TEAM_AZTECAS_COLOR);}
                if(i == 4){GangZoneFlashForPlayer(gangid, i, TEAM_COMANDO_COLOR);}
                if(i == 5){GangZoneFlashForPlayer(gangid, i, TEAM_PCC_COLOR);}
                TurfInfo[i][zMemberDie] = -1;
            }
        }
    }
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
        gTeam[playerid] = 3;
    }
    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
        Hospital[playerid] = 0;
        new rand = random(sizeof(CIV));
        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)
        {
            Hospital[playerid] = 0;
            new rand = random(sizeof(CIV));
            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)
        {
            Hospital[playerid] = 0;
            new rand = random(sizeof(CIV));
            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)
    {
        Hospital[playerid] = 0;
        new rand = random(sizeof(CIV));
        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)
        {
            Hospital[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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 14; gTeam[playerid] = 14; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 2, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 21; gTeam[playerid] = 21; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 22; gTeam[playerid] = 22; PlayerInfo[playerid][pModel] = model; }
       

            else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 16; gTeam[playerid] = 16; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,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,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
            else if(PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,1446.3839,-2287.1284,13.5469,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][pModel]); }
    else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);
    for(new i = 0; i < sizeof(Turfs); i++)
    {
        GangZoneShowForAll(i, TurfInfo[i][zColor]);
    }
    return 1;
}
ta ae :]
Reply
#4

Poste a public SetPlayerSpawn.
Reply
#5

pawn Код:
public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        spawnado[playerid] = 1;
        if(PlayerInfo[playerid][pTut] == 0)
        {
            gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            TogglePlayerControllable(playerid, 0);
            RegistrationStep[playerid] = 1;
            ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "Atenзгo", "Qual й o seu sexo?", "Masculino", "Feminino");
        }
        if(ProvocoMorro[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZMorro);
            GangZoneShowForAll(GZMorro, 0xFFFFFF96);
            GuerranoMorro = 0;
            ProvocoMorro[playerid] = 0;
            donomorro = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraMorro);
        }
        if(ProvocoSkate[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZSkate);
            GangZoneShowForAll(GZSkate, 0xFFFFFF96);
            GuerranoSkate = 0;
            ProvocoSkate[playerid] = 0;
            donoskate = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraSkate);
        }
        if(ProvocoShop[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZShop);
            GangZoneShowForAll(GZShop, 0xFFFFFF96);
            GuerranoShop = 0;
            ProvocoShop[playerid] = 0;
            donoshop = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraShop);
        }
        if(ProvocoPier[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZPier);
            GangZoneShowForAll(GZPier, 0xFFFFFF96);
            GuerranoPier = 0;
            ProvocoPier[playerid] = 0;
            donopier = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraPier);
        }
        if(ProvocoMateriala[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZMateriala);
            GangZoneShowForAll(GZMateriala, 0xFFFFFF96);
            GuerranoMateriala = 0;
            ProvocoMateriala[playerid] = 0;
            donomateriala = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraMateriala);
        }
        if(ProvocoFa1[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZFa1);
            GangZoneShowForAll(GZFa1, 0xFFFFFF96);
            GuerranoFa1 = 0;
            ProvocoFa1[playerid] = 0;
            donoFa1 = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraFa1);
        }
        if(ProvocoFa2[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZFa2);
            GangZoneShowForAll(GZFa2, 0xFFFFFF96);
            GuerranoFa2 = 0;
            ProvocoFa2[playerid] = 0;
            donoFa2 = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraFa2);
        }

        new rand;
        new house = PlayerInfo[playerid][pPhousekey];
        if(PlayerPaintballing[playerid] != 0)
        {
            ResetPlayerWeapons(playerid);
            GivePlayerWeapon(playerid, 29, 999);
            GivePlayerWeapon(playerid, 24, 999);
            rand = random(sizeof(PaintballSpawns));
            SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 1)
        {
            SetPlayerInterior(playerid, 6);
            SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
            SendClientMessage(playerid, COLOR_OOC, "Vocк nгo cumpriu com sua pena, dados: LSPD HQ");
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 3)
        {
            SetPlayerInterior(playerid, 3);
            SetPlayerPos(playerid,197.7218,175.0082,1003.0234);
            SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: FBI HQ");
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 4)
        {
            SetPlayerInterior(playerid, 10);
            SetPlayerPos(playerid,223.2259,109.8377,999.0156);
            SendClientMessage(playerid, COLOR_OOC, "Vocк ainda nгo cumpriu com sua pena, dados: Swat HQ");
            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);
            return 1;
        }
        if(house != 255 && LocalSpawn[playerid] == 1)
        {
            if(SpawnChange[playerid])
            {
                SetPlayerToTeamColor(playerid);
                if(PlayerInfo[playerid][pDonateRank] == 1)
                {
                    SetPlayerArmour(playerid, 60);
                    SafeGivePlayerWeapon(playerid, 24, 100);
                    SafeGivePlayerWeapon(playerid, 29, 300);
                    SafeGivePlayerWeapon(playerid, 31, 300);
                }
                else if(PlayerInfo[playerid][pDonateRank] == 2)
                {
                    SetPlayerArmour(playerid, 90);
                    SafeGivePlayerWeapon(playerid, 24, 999);
                    SafeGivePlayerWeapon(playerid, 29, 999);
                    SafeGivePlayerWeapon(playerid, 31, 999);
                }
                if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
                {
                    SafeGivePlayerWeapon(playerid, 4, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 11)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
                {
                   SafeGivePlayerWeapon(playerid, 22, 100);
                   SafeGivePlayerWeapon(playerid, 8, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
                {
                   SafeGivePlayerWeapon(playerid, 22, 100);
                   SafeGivePlayerWeapon(playerid, 8, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
                {
                    SafeGivePlayerWeapon(playerid, 24, 50);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
                {
                  SafeGivePlayerWeapon(playerid, 24, 50);
                }
                else if(PlayerInfo[playerid][pLeader] == 23 || PlayerInfo[playerid][pMember] == 23)
                {
                  SafeGivePlayerWeapon(playerid, 24, 300);
                }
                else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
                {
                  SafeGivePlayerWeapon(playerid, 24, 50);
                }
                else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
                {
                  SafeGivePlayerWeapon(playerid, 24, 50);
                }
                else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
                {
                  SafeGivePlayerWeapon(playerid, 24, 50);
                }
                else
                SetPlayerToTeamColor(playerid);
                SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]);
                PlayerInfo[playerid][pLocal] = house;
                PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                return 1;
            }
        }
        if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
        {
              SetPlayerToTeamColor(playerid);
              SafeGivePlayerWeapon(playerid, 24, 100);
              SafeGivePlayerWeapon(playerid, 29, 300);
              SafeGivePlayerWeapon(playerid, 31, 300);
              SetPlayerArmour(playerid, 60);
        }
        if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
        {
              SetPlayerToTeamColor(playerid);
              SafeGivePlayerWeapon(playerid, 24, 999);
              SafeGivePlayerWeapon(playerid, 29, 999);
              SafeGivePlayerWeapon(playerid, 31, 999);
              SetPlayerArmour(playerid, 90);
        }
        //POLICIA MILITAR
        if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerHealth(playerid, 100);
            SetPlayerPos(playerid, 232.7498,73.7373,1005.0391);
            SetPlayerFacingAngle(playerid, 270.0);
            SetCameraBehindPlayer(playerid);
            ResetPlayerWeapons(playerid);
            SetPlayerInterior(playerid,6);
            PlayerInfo[playerid][pInt] = 6;
            return 1;
        }

        //POLICIA FEDERAL
        if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerHealth(playerid, 100);
            SetPlayerPos(playerid, 257.0127,190.2985,1008.1719);
            SetPlayerFacingAngle(playerid, 270.0);
            SetCameraBehindPlayer(playerid);
            ResetPlayerWeapons(playerid);
            SetPlayerInterior(playerid,3);
            PlayerInfo[playerid][pInt] = 3;
            return 1;
        }

        //FORЗAS ARMADAS
        if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerHealth(playerid, 100);
            SetPlayerPos(playerid, 310.6609,-164.7110,999.5938);
            SetPlayerFacingAngle(playerid, 280.0);
            ResetPlayerWeapons(playerid);
            SetPlayerInterior(playerid, 6);
            PlayerInfo[playerid][pInt] = 6;
            return 1;
        }

        //MEDICOS
        if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 2033.1431,-1405.6340,17.2290);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //BALLAS
        if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerInterior(playerid, 5);
            return 1;
        }

        //GROVE STREET
        if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerArmour(playerid, 70);
            SetCameraBehindPlayer(playerid);
            SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //PREFEITO
        if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerArmour(playerid, 70);
            SetPlayerPos(playerid, 1130.1013,-2037.5076,69.0078);
            SetPlayerFacingAngle(playerid, 270.0);
            SetCameraBehindPlayer(playerid);
            SafeGivePlayerWeapon(playerid, 29, 300);
            SafeGivePlayerWeapon(playerid, 24, 300);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //HITMANS
        if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
            SetPlayerFacingAngle(playerid, 244.0);
            SetPlayerArmour(playerid, 70);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,4);
            SafeGivePlayerWeapon(playerid, 4, 1);
            SafeGivePlayerWeapon(playerid, 22, 100);
            SafeGivePlayerWeapon(playerid, 34, 50);
            PlayerInfo[playerid][pInt] = 4;
            return 1;
        }

        //SAN NEWS
        if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 356.6006,209.0214,1008.3828);
            SetPlayerArmour(playerid, 70);
            SetPlayerInterior(playerid,3);
            PlayerInfo[playerid][pInt] = 3;
            return 1;
        }

        //LOWRIDERS
        if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,12);
            PlayerInfo[playerid][pInt] = 12;
            return 1;
        }

        //SAN FIERRO RIFFAS
        if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 2178.6990,-2255.3501,14.7734);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerFacingAngle(playerid, 225.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //LOS SANTOS VAGOS
        if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //ASPHALT KING'S
        if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
            SetPlayerFacingAngle(playerid, 0.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerInterior(playerid,11);
            PlayerInfo[playerid][pInt] = 11;
            return 1;
        }

        //POLICIA RODOVIARIA FEDERAL
        if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 322.1213,315.1004,999.1484);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 70);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,5);
            PlayerInfo[playerid][pInt] = 5;
            return 1;
        }

        //AZTECAS
        if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid,8);
            SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            PlayerInfo[playerid][pInt] = 8;
            return 1;
        }

        //TRIADS
        if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 8, 1);
            SetPlayerFacingAngle(playerid, 90.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }

        //YAKUZA
        if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, -2164.5222,645.5374,1057.5938);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 8, 1);
            SetPlayerInterior(playerid,1);
            return 1;
        }

        //DRIFTERS
        if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerInterior(playerid,18);
            return 1;
        }

        //COMANDO VERMELHO
        if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
            SetPlayerArmour(playerid, 70);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerInterior(playerid,10);
            return 1;
        }

        //PCC
        if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
            SafeGivePlayerWeapon(playerid, 24, 50);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SetPlayerInterior(playerid,2);
            PlayerInfo[playerid][pInt] = 2;
            return 1;
        }

        //Swat
        if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerHealth(playerid, 100);
            SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
            ResetPlayerWeapons(playerid);
            SetPlayerFacingAngle(playerid, 180.0);
            SetPlayerInterior(playerid,10);
            return 1;
        }

        //AL QAEDA
        if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 70);
            SetPlayerPos(playerid, 425.1764,2531.2666,16.6157);
            SafeGivePlayerWeapon(playerid, 30, 100);
            SafeGivePlayerWeapon(playerid, 29, 100);
            SafeGivePlayerWeapon(playerid, 24, 300);
            SetPlayerFacingAngle(playerid, 133.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            return 1;
        }

        //POLICIA CIVIL
        if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 70);
            SetPlayerHealth(playerid, 100);
            SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
            SetPlayerFacingAngle(playerid, 90.0);
            SetCameraBehindPlayer(playerid);
            ResetPlayerWeapons(playerid);
            SetPlayerInterior(playerid, 10);
            PlayerInfo[playerid][pInt] = 10;
            return 1;
        }
        if ((gTeam[playerid]) == 1)
        {
            SetPlayerToTeamColor(playerid);
            rand = random(sizeof(gMedPlayerSpawns));
            SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]);
            SetPlayerFacingAngle(playerid, 270.0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        else
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid,PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
            SetPlayerFacingAngle(playerid, 46.8583);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
        }
    }
    return 1;
}
Reply
#6

Tenso'

Em nenhum dos dois codigos a variavel de ADM й citada.

O que vocк pode fazer й colocar isto no final do segundo codigo que vocк enviou:

PHP код:
if(PlayerInfo[playerid][pAdmin] > 0)
{
//FUNCOES AQUI

Reply
#7

pawn Код:
if(PlayerInfo[playerid][pAdmin] > 0)
        {
            SetPlayerPos(playerid, X,Y,Z); // X,Y,Z Sгo as coordenadas.
            SetPlayerInterior(playerid,0); // 0 = Interior do local, para ver o interior digite /interior.
            return 1;
        }
Reply
#8

Eu vi o topico e tava presisando mudar no meu tambem ai rodei o game mode se for igual o meu ta aqui

Quote:

if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerPos(playerid, 980.29,-2152.94,13.19); //Aqui voce coloca as cordenadas
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid,38,50000);
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)