[[[Ajuda]]] Bug no spawn da casa
#1

Pessoal, eu estou com um poblema BUG que vem me atormentando a um tempo ¬¬
os player que compram casa eles quando toman spawn ou quando logan no servidor eles vгo para o local de SPAWN CIVIL"Onde ficam os novatos e players sem orgs" e eu ja nгo sei mais o que fazer, como todos sabйm eles deveriam nascer em suas casas!!!
Desde Jб agrasdeзo a quem puder me ajudar!!!

New das casas
pawn Код:
new HouseInfo[100][hInfo];
New dos carros
pawn Код:
new Float:HouseCarSpawns[100][4] = {
{2452.1995,-1049.6436,59.2967,357.0214},    //House 0
{2064.4,-1694.4,13.1,271.1561},             //House 1
{1137.0111,-1079.0636,29.1111,269.7175},    //House 2
{763.5253,-1015.1754,23.7785,179.3042},     //house 3
{2196.3860,-1277.1636,24.2382},             //House 4
{2645.0,-1990.8,13.1,180.0},                //House  5
{1099.7837,-1060.8091,29.3296,91.8732},     //house 6
{1910.5149,-1120.5304,25.4493,177.8350},    //house 7
{322.3892,-1766.2344,4.1871,180.8791},      //House 8
{2149.6,-1610.9,14.0,90.7904},              //House 9
{760.1,-1687.8,4.3,180.6},                  //House 10
{2003.2151,-1121.0724,26.4106,178.1974},    //House 11
{2135.8093,-1317.5515,24.4651,359.2135},    //House 12
{1330.5758,-1058.9640,28.2987,270.1230},    //House 13
{422.9023,-1264.4869,51.2882,21.3016},      //House 14
{2566.6636,-1063.2622,69.0360,347.4188},    //House 15
{737.0083,-582.2383,16.3038,90.5973},       //house 16
{750.6767,-549.2943,16.7641,0.7049},        //House 17
{1536.9073,-841.2004,64.3597,90.0108},      //House 18
{711.9797,-1421.8719,13.2364,359.5531},     //House 19
{1514.8206,-695.4568,94.4548,90.3060},      //House 20
{1246.7,-1107.6,25.5,266.4},                //House 21
{170.1722,-1770.4891,4.0037,89.1740},       //House 22
{1007.9,-659.4,121.1,130.6194},             //House 23
{250.9039,-1359.7059,52.8143,304.3794},     //House 24
{259.7,-1221.0,74.7,202.0011},              //House 25
{1088.1820,-640.8816,112.8738,272.1728},    //house 26
{279.6023,-1255.3602,73.5907,304.8812},     //house 27
{171.9407,-1340.5460,69.4803,177.6759},     //house 28
{872.5610,-1505.3683,12.7620,90.1264},      //House 29
{785.9954,-489.2944,17.0595,179.2733},      //House 30
{2385.7722,-1351.5635,24.1273,50.7125},     //House 31
{2456.5896,-1281.9517,23.6197,179.3207},    //House 32
{2855.3516,-1355.3148,10.8119,272.1531},    //House 33
{2746.9607,-1176.0646,69.1099,88.7490},     //House 34
{1773.1859,-2099.0200,13.2631,180.6702},    //House 35
{1354.6211,-629.8350,108.8482,17.0082},     //House 36
{2142.1787,-1423.1500,24.3546,89.7868},     //House 37
{302.4102,-1329.3671,53.1494,77.5091},      //House 38
{1187.3793,-1085.3103,28.8387,89.7992},     //House 39
{496.1763,-1600.1426,17.6133,270.6084},     //House 40
{844.3105,-1418.2499,12.6641,358.3064},     //House 41
{1772.3842,-2126.3975,13.2630,358.7906},    //House 42
{1747.4833,-2099.0205,13.2627,180.9940},    //House 43
{2452.4004,-1099.5651,42.7658,357.4063},    //House 44
{2541.9365,-1035.6682,69.2870,178.8041},    //House 45
{2393.1614,-1674.2039,13.7219,359.8077},    //House 46
{2271.4641,-1645.7638,15.0787,180.2324},    //House 47
{2012.1320,-1737.8585,13.2556,89.9789},     //House 48
{1890.2825,-2058.1057,13.1667,268.4086},    //House 49
{2470.0779,-1192.1360,37.5883,88.1269},     //House 50
{2197.1121,-1480.1968,24.3032,269.0272},    //House 51
{1855.4738,-1927.1461,13.1687,88.0756},     //House 52
{2274.2598,-1887.9034,13.2577,89.3230},     //House 53
{2262.3562,-1789.3258,13.2543,358.5175},    //House 54
{1232.2526,-1025.0231,32.1664,186.5785},    //House 55
{2684.7671,-2016.7664,13.2543,359.2259},    //House 56
{686.8347,-1073.4536,49.2490,60.4443},      //House 57
{1183.4478,-1264.6289,14.8852,179.7784},    //house 58
{1183.7997,-1250.1859,14.8820,359.7691},    //house 59
{1183.9744,-1223.3114,18.2570,1.2599},      //house 60
{1288.0072,-896.4886,42.5860,8.2969},       //house 61
{1277.5629,-882.9536,42.5743,98.5290},      //house 62
{1248.2125,-886.5002,42.5627,277.8803},     //house 63
{1240.6487,-894.9689,42.5746,276.8390},     //house 64
{1004.2900,-1055.5223,30.5153,358.7832},    //house 65
{1040.7742,-1055.3009,31.4082,358.5928},    //house 66
{1108.1443,-1025.0146,31.6227,181.0568},    //house 67
{645.2083,-1615.0786,14.9743,1.2926},       //house 68
{643.6046,-1710.2064,14.1268,352.5402},     //house 69
{800.6079,-1734.6123,13.2539,178.9457},     //house 70
{893.4624,-1650.5537,13.2497,88.3964},      //house 71
{859.1323,-1644.4327,13.2575,180.5515},     //house 72
{1697.0950,-2082.6750,13.2379,179.3836},    //house 73
{1670.3290,-2115.6392,13.2385,269.7895},    //house 74
{2319.3953,-1718.8237,13.1861,180.8150},    //house 75
{2328.1106,-1677.4465,14.0968,270.4794},    //house 76
{2383.9658,-1644.4973,13.2267,178.2036},    //house 77
{2018.6034,-1648.6565,13.2582,89.7383},     //house 78
{2159.5049,-1454.3597,25.1937,90.1373},     //house 79
{2256.2004,-1281.3875,25.0289,180.8503},    //house 80
{2242.2729,-1237.6963,24.6635,0.0592},      //house 81
{2386.5508,-1270.5385,23.9688,129.4254},    //house 82
{2482.3364,-1405.9629,28.5423,270.3750},    //house 83
{2530.8540,-1248.3595,37.2823,176.4662},    //house 84
{2149.0466,-1244.9884,24.5009,359.5879},    //house 85
{2106.1648,-1245.9631,24.9645,358.6954},    //house 86
{2096.1221,-1323.5559,25.0913,359.8741},    //house 87
{1934.0676,-1121.7460,26.0068,179.6367},    //house 88
{1464.2502,-901.2772,54.4925,0.1778},       //house 89
{1460.4209,-633.8314,95.5095,180.1274},     //house 90
{1109.2222,-732.3243,100.0948,89.2874},     //house 91
{978.9319,-829.7124,95.4543,26.4151},       //house 92
{831.6269,-856.8465,69.6078,199.6367},      //house 93
{286.9693,-1156.6310,80.6180,221.5773},     //house 94
{231.9583,-1402.1221,51.2951,57.5147},      //house 95
{814.1600,-767.7543,76.5200,286.4727},      //house 96
{865.2215,-711.9375,105.3438,333.9971},     //house 97
{940.7985,-708.9506,121.8917,28.3427},      //house 98
{1039.0522,-640.6063,119.8089,8.5164}       //house 99
};

Aqui a public onplayerspawn

pawn Код:
public OnPlayerSpawn(playerid)
{

    if(IsPlayerNPC(playerid))
    {
        new npcname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, npcname, sizeof(npcname));
        if(!strcmp(npcname, "Tio_Xico", true))
        {
            SetPlayerSkin(playerid, 94);
            return 1;
        }
    }
   
    TextDrawShowForPlayer(playerid, Time),
    TextDrawShowForPlayer(playerid, Date);
    TextDrawShowForPlayer(playerid, TextdrawB);
    TextDrawShowForPlayer(playerid, Textdraw01);
    TextDrawShowForPlayer(playerid, Textdraw02);
    TextDrawShowForPlayer(playerid, Textdraw03);
    TextDrawShowForPlayer(playerid, Textdraw04);
    TextDrawShowForPlayer(playerid, TextDinheiro[playerid]);
   
    InitLockDoors(playerid);
    SetPlayerHealth(playerid, 100);
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam];
    gGas[playerid] = 1;
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        SetPlayerChatBubble( playerid, "ADMIN", COLOR_YELLOW, 50.0, 14400000);
    }
    if (gTeam[playerid] == 4)
    {
        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] == 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] == 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] == 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] == 11) { 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] == 15) { 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] == 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] == 17) { 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][pMember] == 23) { SetSpawnInfo(playerid, 12, model,1446.3839,-2287.1284,13.5469,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 23; gTeam[playerid] = 23; 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] == 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] == 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] == 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] == 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] == 15) { 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] == 17) { 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] == 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; }
            else if(PlayerInfo[playerid][pLeader] == 23) { 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; }
            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);
    return 1;
}
Reply
#2

Nao tem nenhum comando para mudar o local do spawn? Com isso que vc passou fica impossivel definir o local do spawn do player. ( ME corrijam se eu estiver errado)
Reply
#3

Correto, vamos la!!

pawn Код:
if(strcmp(cmd, "/localspawn", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
            SendClientMessage(playerid, COLOR_WHITE, "/localspawn [nome]");
            SendClientMessage(playerid, COLOR_WHITE, "Nomes Disponнveis: hq, casa");
            SendClientMessage(playerid, COLOR_GREY, "|________________________________________|");
            return 1;
        }
        if(strcmp(tmp, "hq", true) == 0)
        {
            if(PlayerInfo[playerid][pPhousekey] != 255)
            {
                LocalSpawn[playerid] = 0;
                SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar na HQ.");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
                return 1;
            }
        }
        else if(strcmp(tmp, "casa", true) == 0)
        {
            if(PlayerInfo[playerid][pPhousekey] != 255)
            {
                LocalSpawn[playerid] = 1;
                SendClientMessage(playerid, COLOR_GREY, "Agora vocк irб spawnar em casa.");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Vocк precisa ter casa para usar esse comando");
                return 1;
            }
        }
        else {
            SendClientMessage(playerid, COLOR_GREY, "/localspawn [nome]");
            return 1;
        }
    }

Aqui estб o Setplayerspawn

pawn Код:
public SetPlayerSpawn(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        TextDrawShowForPlayer(playerid, Textdraw01);
        TextDrawShowForPlayer(playerid, Textdraw02);
        TextDrawShowForPlayer(playerid, Textdraw03);
        TextDrawShowForPlayer(playerid, Textdraw04);
        spawnado[playerid] = 1;
        LoadFightStyle(playerid);
        if(PlayerInfo[playerid][pTut] == 0)
        {
            gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
            TogglePlayerControllable(playerid, 0);
            RegistrationStep[playerid] = 1;
            ShowPlayerDialog(playerid,14, DIALOG_STYLE_MSGBOX, "Atencг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(ProvocoCemiterio[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZCemiterio);
            GangZoneShowForAll(GZCemiterio, 0xFFFFFF96);
            GuerranoCemiterio = 0;
            ProvocoCemiterio[playerid] = 0;
            DonoCemiterio = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraCemiterio);
        }
        if(ProvocoPraia[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZPraia);
            GangZoneShowForAll(GZPraia, 0xFFFFFF96);
            GuerranoPraia = 0;
            ProvocoPraia[playerid] = 0;
            DonoPraia = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraPraia);
        }
        if(ProvocoAero[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZAero);
            GangZoneShowForAll(GZAero, 0xFFFFFF96);
            GuerranoAero = 0;
            ProvocoAero[playerid] = 0;
            DonoAero = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGueraAero);
        }
        if(ProvocoPier[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZPier);
            GangZoneShowForAll(GZPier, 0xFFFFFF96);
            GuerranoPier = 0;
            ProvocoPier[playerid] = 0;
            DonoPier = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraPier);
        }
        if(ProvocoShop[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZShop);
            GangZoneShowForAll(GZShop, 0xFFFFFF96);
            GuerranoShop = 0;
            ProvocoShop[playerid] = 0;
            DonoShop = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraShop);
        }
        if(ProvocoSkate[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZSkate);
            GangZoneShowForAll(GZSkate, 0xFFFFFF96);
            GuerranoSkate = 0;
            ProvocoSkate[playerid] = 0;
            DonoSkate = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraSkate);
        }
        if(ProvocoGzMafia1[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZMafia1);
            GangZoneShowForAll(GZMafia1, 0xFFFFFF96);
            GuerranoGzMafia1 = 0;
            ProvocoGzMafia1[playerid] = 0;
            DonoGzMafia1 = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraGzMafia1);
        }
        if(ProvocoGzMafia2[playerid] == 1)
        {
            GangZoneStopFlashForAll(GZMafia2);
            GangZoneShowForAll(GZMafia2, 0xFFFFFF96);
            GuerranoGzMafia2 = 0;
            ProvocoGzMafia2[playerid] = 0;
            DonoGzMafia2 = 0;
            Dominando[playerid] = 0;
            KillTimer(TempoGuerraGzMafia2);
        }
        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: Bope HQ");
            return 1;
        }
        if(PlayerInfo[playerid][pJailed] == 2)
        {
            SetPlayerInterior(playerid, 0);
            rand = random(sizeof(PaintballSpawns));
            SetPlayerPos(playerid, BanguSpawns[rand][0], BanguSpawns[rand][1], BanguSpawns[rand][2]);
            Carregar1(playerid);
            return 1;
        }
        if(FixBug[playerid] == 0 && Hospital[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerInfo[playerid][pDonateRank] != 2)
        {
           Hospital[playerid] = 0;
           Irhosp = SetTimerEx("Ambu", 1000, 0, "i", playerid);
           return 1;
        }
        if(house != 255 && LocalSpawn[playerid] == 1)
        {
            if(SpawnChange[playerid])
            {
                if(PlayerInfo[playerid][pDonateRank] == 1)
                {
                    SetPlayerArmour(playerid, 50);
                    SafeGivePlayerWeapon(playerid, 24, 100);
                    SafeGivePlayerWeapon(playerid, 29, 300);
                    SafeGivePlayerWeapon(playerid, 31, 300);
                }
                if(PlayerInfo[playerid][pDonateRank] == 2)
                {
                    SetPlayerArmour(playerid, 70);
                    SafeGivePlayerWeapon(playerid, 24, 1000);
                    SafeGivePlayerWeapon(playerid, 29, 1000);
                    SafeGivePlayerWeapon(playerid, 31, 1000);
                }
                if(PlayerInfo[playerid][pDonateRank] == 3)
                {
                    SetPlayerArmour(playerid, 100);
                    SafeGivePlayerWeapon(playerid, 24, 9999);
                    SafeGivePlayerWeapon(playerid, 29, 9999);
                    SafeGivePlayerWeapon(playerid, 31, 9999);
                }
                else if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
                {
                  SafeGivePlayerWeapon(playerid, 24, 30);
                }
                else if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2)
                {
                  SafeGivePlayerWeapon(playerid, 24, 30);
                }
                else if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
                {
                  SafeGivePlayerWeapon(playerid, 24, 30);
                }
                else if(PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5)
                {
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)
                {
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
                {
                    SafeGivePlayerWeapon(playerid, 4, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 10 || PlayerInfo[playerid][pMember] == 10)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    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] == 12 || PlayerInfo[playerid][pMember] == 12)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 15 || PlayerInfo[playerid][pMember] == 15)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 16 || PlayerInfo[playerid][pMember] == 16)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 8, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 8, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 18)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 19 || PlayerInfo[playerid][pMember] == 19)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 20 || PlayerInfo[playerid][pMember] == 20)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                    SafeGivePlayerWeapon(playerid, 29, 150);
                    SafeGivePlayerWeapon(playerid, 5, 1);
                    SafeGivePlayerWeapon(playerid, 1, 1);
                }
                else if(PlayerInfo[playerid][pLeader] == 22 || PlayerInfo[playerid][pMember] == 22)
                {
                    SetPlayerArmour(playerid, 25);
                    SafeGivePlayerWeapon(playerid, 30, 600);
                    SafeGivePlayerWeapon(playerid, 24, 150);
                }
                else if(PlayerInfo[playerid][pLeader] == 21 || PlayerInfo[playerid][pMember] == 21)
                {
                    SafeGivePlayerWeapon(playerid, 24, 30);
                }
                else
                {
                    SetPlayerToTeamColor(playerid);
                    //SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                    SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
                    PlayerInfo[playerid][pLocal] = house;
                    //PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                }
                return 1;
            }
        }
       
        if(house == 255 && PlayerInfo[playerid][pDonateRank] == 1)
        {
              SafeGivePlayerWeapon(playerid, 24, 300);
              SafeGivePlayerWeapon(playerid, 29, 300);
              SafeGivePlayerWeapon(playerid, 31, 300);
              SetPlayerArmour(playerid, 40);
        }
       
        if(house == 255 && PlayerInfo[playerid][pDonateRank] == 2)
        {
              SafeGivePlayerWeapon(playerid, 24, 1000);
              SafeGivePlayerWeapon(playerid, 29, 1000);
              SafeGivePlayerWeapon(playerid, 31, 1000);
              SetPlayerArmour(playerid, 70);
        }

        if(house == 255 && PlayerInfo[playerid][pDonateRank] == 3)
        {
              SafeGivePlayerWeapon(playerid, 24, 9999);
              SafeGivePlayerWeapon(playerid, 29, 9999);
              SafeGivePlayerWeapon(playerid, 31, 9999);
              SetPlayerArmour(playerid, 100);
        }
       
        //MECANICOS
        if (PlayerInfo[playerid][pJob] == 7 && PlayerInfo[playerid][pRank] == 0)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 2520.1360,-1476.3246,23.9898);
            SetPlayerFacingAngle(playerid, 0.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            return 1;
        }
       
        //TAXISTAS
        if (PlayerInfo[playerid][pJob] == 13 && PlayerInfo[playerid][pRank] == 0)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 1284.4120,-1350.1644,13.5634);
            SetPlayerFacingAngle(playerid, 90.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            return 1;
        }
       
        //CAMIONEIROS
        if (PlayerInfo[playerid][pJob] == 16 && PlayerInfo[playerid][pRank] == 0)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, -40.0272,-232.3873,5.7161);
            SetPlayerFacingAngle(playerid, 270.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            return 1;
        }
       
        //POLICIA MILITAR
        if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 50);
            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, 50);
            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, 50);
            SetPlayerPos(playerid, 310.6609,-164.7110,999.5938);
            SetPlayerFacingAngle(playerid, 280.0);
            ResetPlayerWeapons(playerid);
            SetPlayerInterior(playerid, 6);
            PlayerInfo[playerid][pInt] = 6;
            return 1;
        }
       
        // MЙDICOS
        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);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 324.0143,1122.2839,1083.8828);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerInterior(playerid, 5);
            return 1;
        }
       
        //GROVE STREET
        if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
        {
            SetPlayerToTeamColor(playerid);

            SetPlayerInterior(playerid, 0);
            SetPlayerArmour(playerid, 25);
            SetCameraBehindPlayer(playerid);
            SetPlayerPos(playerid, 2519.1958,-1678.1322,14.6467);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
       
        //PREFEITO
        if(PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 7)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerArmour(playerid, 90);
            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);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 437.1817,-83.7573,999.5547);
            SetPlayerFacingAngle(playerid, 244.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,4);
            SafeGivePlayerWeapon(playerid, 4, 1);
            SafeGivePlayerWeapon(playerid, 24, 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);
            SetPlayerInterior(playerid,3);
            PlayerInfo[playerid][pInt] = 3;
            return 1;
        }
       
        //LOWRIDERS
        if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 1121.4432,7.9393,1002.0859);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,12);
            PlayerInfo[playerid][pInt] = 12;
            return 1;
        }
       
        //SAN FIERRO RIFFA'S
        if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 2178.6990,-2255.3501,14.7734);
            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;
        }
       
        //VAGOS
        if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 2354.4053,-1167.3206,27.6563);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 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);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 508.3417,-80.1715,998.9609);
            SetPlayerFacingAngle(playerid, 0.0);
            SetCameraBehindPlayer(playerid);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerInterior(playerid,11);
            PlayerInfo[playerid][pInt] = 11;
            return 1;
        }
       
        //Detran
        if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 322.1213,315.1004,999.1484);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 30);
            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);
            SetPlayerArmour(playerid, 25);
            SetPlayerInterior(playerid,8);
            SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            PlayerInfo[playerid][pInt] = 8;
            return 1;
        }
       
        //TRIADS
        if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 1254.4261,-790.6013,92.0302);
            SafeGivePlayerWeapon(playerid, 24, 100);
            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, -2162.7759,645.1091,1057.5861);
            SetPlayerFacingAngle(playerid, 114.0);
            SetCameraBehindPlayer(playerid);
            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);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, -226.2575,1409.8733,27.7734);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerInterior(playerid,18);
            return 1;
        }
       
        //COMANDO
        if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 416.1714,2537.2358,10.0000);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerInterior(playerid,10);
            return 1;
        }
       
        //PCC
        if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 2554.1692,-1285.9547,1060.9844);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerInterior(playerid,2);
            PlayerInfo[playerid][pInt] = 2;
            return 1;
        }
       
        //Bope
        if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 50);
            SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
            ResetPlayerWeapons(playerid);
            SetPlayerFacingAngle(playerid, 180.0);
            SetPlayerInterior(playerid,10);
            return 1;
        }
       
        //ALQAEDA
        if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 410.5698,2538.9133,16.5474);
            SafeGivePlayerWeapon(playerid, 30, 600);
            SafeGivePlayerWeapon(playerid, 24, 150);
            SetPlayerFacingAngle(playerid, 90.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,0);
            return 1;
        }

        // Amigos dos Amigos
        if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 767.0450,-68.6931,1001.5692);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,7);
            PlayerInfo[playerid][pInt] = 7;
            return 1;
        }

        // Aryan Brotherhood
        if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 611.5771,2.1374,1000.9219);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,1);
            PlayerInfo[playerid][pInt] = 1;
            return 1;
        }

        // Bloodz
        if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 733.2858,1436.5341,1102.7031);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,6);
            PlayerInfo[playerid][pInt] = 6;
            return 1;
        }
        // Crips
        if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 412.4734,-48.3636,1001.8967);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,12);
            PlayerInfo[playerid][pInt] = 12;
            return 1;
        }
        // Texas
        if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)
        {
            SetPlayerToTeamColor(playerid);
            SetPlayerArmour(playerid, 25);
            SetPlayerPos(playerid, 418.6468,-79.7895,1001.8047);
            SafeGivePlayerWeapon(playerid, 24, 100);
            SafeGivePlayerWeapon(playerid, 1, 1);
            SafeGivePlayerWeapon(playerid, 5, 1);
            SetPlayerFacingAngle(playerid, 180.0);
            SetCameraBehindPlayer(playerid);
            SetPlayerInterior(playerid,3);
            PlayerInfo[playerid][pInt] = 3;
            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;
        }
       
        if(PlayerInfo[playerid][pFMember] != 255)
        {
            new family = PlayerInfo[playerid][pFMember];
            SetPlayerToTeamColor(playerid);
            SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
            SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
            SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
            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
#4

pawn Код:
if(house != 255 && LocalSpawn[playerid] == 1)
{
     if(SpawnChange[playerid])
     {
          SetPlayerInterior(playerid,HouseInfo[house][hInt]);
          SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
          PlayerInfo[playerid][pLocal] = house;
          PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
     }                
     return 1;
}
Ve se assim vai.
Reply
#5

Quote:
Originally Posted by Aquilis
Посмотреть сообщение
pawn Код:
if(house != 255 && LocalSpawn[playerid] == 1)
{
     if(SpawnChange[playerid])
     {
          SetPlayerInterior(playerid,HouseInfo[house][hInt]);
          SetPlayerPos(playerid, HouseInfo[house][hEntrancex], HouseInfo[house][hEntrancey],HouseInfo[house][hEntrancez]);
          PlayerInfo[playerid][pLocal] = house;
          PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
     }                
     return 1;
}
Ve se assim vai.
nгo entendi, como vc quer que eu coloque isso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)