[Ajuda]Sobre o BSL..
#1

Gente, eu andei procurando e nao achei, algum sabe como mudar o respawn de odne o civil, player normal nasce assim que entra no server? Eu nao quero nascer lб onde й o respawn deles, e eu n achei no script onde q ta essas cordenadas para eu mudar.
Reply
#2

pelo que andei pesquisando, nao seria nessa public ?

public SetPlayerSpawn(playerid)

OBS: foi sу uma pesquisa, nгo entendo disso nгo!
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)

ou

public SetPlayerSpawn(playerid)
Reply
#4

pawn Код:
public SetPlayerSpawn(playerid)
isso й uma callback do seu gm e nгo do samp amigo.
Reply
#5

Sim, eu sei disso dai. O problema й que tem os spawns de todas orgs, gangs, spawn para qndo ir preso, sair da cadeia, mto spawn com cordenadas, e o Cntrl F do pawno sу acha o 1є SetPlayerSpawn, postei aki pq to querendo saber algum q conheзa esse gm, e como q faz..
Reply
#6

Entгo manda tudo para nуs analisarmos.
Reply
#7

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, "Tio_Xico", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
        {
            SetPlayerSkin(playerid, 94);
            return 1;
        }
        if(!strcmp(npcname, "Policial_Dp", 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]; //Set the Team
    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][pJob]==17) { 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][pJob]==17) { 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;
}
Reply
#8

Que Tal Quando Tu der Spawn Civil, quando tu parar no local ( nгo se mova. ) da /save, Pegue a Coodernada X,Y,Z й pesquise no seu gm ?
Reply
#9

Pega a localizaзгo de quando ele nasce, pois assim podemos saber e mudarmos a posiзгo.

OBS: Nгo se mova ao ser spawnado e entгo digite /save, a localizaзгo ficarб na pasta "Meus Documentos\GTA San Andreas User Files\SAMP\savedpositions.txt". Serб a ultima linha deste arquivo, entгo vocк copia e posta aqui.
Reply
#10

Posta a public abaixo.

pawn Код:
public SetPlayerSpawn(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)