Queria ver como fazer para mudar o respawn dos civis, e tambem como mudar a skin deles assim q eles nascerem no server..
Eu jб loguei no server, dei /save e dps tentei procurar as cordenadas no meu GM, mas nada.. Meu GM й o BSL.
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: BOPE 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(PlayerInfo[playerid][pJailed] == 5)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк foi preso por sair com nнvel de procurado.");
PlayerInfo[playerid][pJailed] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 6)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_OOC, "Vocк foi preso por sair sequestrado.");
PlayerInfo[playerid][pJailed] = 1;
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("HospitalCountdown", 1000, 0, "i", playerid);
return 1;
}*/
if(FixBug[playerid] == 0 && PlayerIsDead[playerid] == 1 && Hospital[playerid] == 1)
{
MorreDeita = SetTimerEx("MorreDeitaTimer", 100, 0, "i", playerid);
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, 30);
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, 30);
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, 30);
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][pJob]==17 )
{
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);
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);
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);
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);
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);
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);
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);
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);
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);
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, 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);
SetPlayerInterior(playerid,8);
SetPlayerPos(playerid, 2817.9792,-1169.5975,1025.5778);
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);
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);
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);
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);
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);
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;
}
//B.O.P.E
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 30);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 248.9618,115.4132,1003.2188);
ResetPlayerWeapons(playerid);
SetPlayerFacingAngle(playerid, 180.0);
SetPlayerInterior(playerid,10);
return 1;
}
//AS FARC
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
{
SetPlayerToTeamColor(playerid);
SetPlayerHealth(playerid, 100);
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, 80);
SetPlayerHealth(playerid, 100);
SetPlayerPos(playerid, 235.3717,115.1140,1010.2188);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid, 10);
PlayerInfo[playerid][pInt] = 10;
return 1;
}
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 80);
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid,42,50000);
SetPlayerPos(playerid, 1285.1731,-1349.7958,13.5657);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerPos(playerid, -2885.7073,472.6922,4.9141);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
GivePlayerWeapon(playerid,38,50000);
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;
}
Caso eu nгo esteja enganado, vocк deve procurar o "Set_Posx" no seu gm e la voce encontrara algumas coordenadas, basta substituir.
Da mesma forma que tem o "posx", haverб o "posy" e "posz", logo tambem serб necessario trocar esta coordenadas.
Eh isso mesmo Nightwish ! Nгo lembrava muito bem qual era ... =D
Isto ai й so uma explicaзгo que o Shickcard estб dando ... (Й o que eu acho)
Shick, eu achei as cordenadas antigas, consegui fazer ele nascer num outro lugar, mas agora tenho bugs com o tutorial, se puder ajudar lб :