11.12.2011, 11:12
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
New dos carros
Aqui a public onplayerspawn
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];
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;
}