pawn Код:
public OnPlayerSpawn(playerid)
{
CheckInfoOrg(playerid);
new string[256];
new plname[MAX_PLAYER_NAME];
TextDrawShowForPlayer(playerid, TForum[playerid]);
//InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0)
{
//SendClientMessage(playerid, COLOR_LIGHTRED, "** Voce precisa logar antes do Spawn (Kickado) **");
//KickPlayer[playerid] = 1;
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "Contas/%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
GetPlayerName(playerid,plname,sizeof(plname));
format(string,sizeof(string),"%s Seja Bem Vindo ao\nBrasil Stylle RPG Digite sua Senha para Logar!",plname);
//SendClientMessage(playerid, COLOR_YELLOW2,string);
//SendClientMessage(playerid, COLOR_YELLOW2, "Vocк й um(a) Jogador Registrado para logar digite /logar [senha]");
//SendClientMessage(playerid, COLOR_YELLOW2, "Brasil Stylle RPG: Seu nick esta registrado, E so Logar");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Login", string, "Logar", "Sair");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
GetPlayerName(playerid,plname,sizeof(plname));
format(string,sizeof(string),"%s Seja Bem Vindo ao\nBrasil Stylle RPG Digite sua Senha para Registrar!",plname);
//SendClientMessage(playerid, COLOR_YELLOW2,string);
//SendClientMessage(playerid, COLOR_YELLOW2, "Vocк ainda nгo estб registrado para registrar digite /registrar [senha]");
//SendClientMessage(playerid, COLOR_YELLOW2, "Brasil Stylle RPG: Este nick nao esta cadastrado, Se Cadastre Para Jogar");
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Registrar", string, "Registrar", "Sair");
return 1;
}
}
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк nгo й mas um lнder agora vocк й civil");
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)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um membro da familia, Voce e um Civil!");
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)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um membro da Agencia, Voce e um Civil!");
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)
{
MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, COLOR_LIGHTRED, "Voce nao e mais um Oficial, Voce e um Civil!");
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)
{
MedicBill[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,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] == 3) { 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] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,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,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
//SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
//SpawnPlayer(playerid);
}
}*/
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerToTeamColor(playerid);
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
PlayerFixRadio(playerid);
PoderosoInfo[playerid][pSpawnado] = 1;
/*for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
}*/
return 1;
}
pawn Код:
public SetPlayerSpawn(playerid)
{
new string[256];
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pTut] == 0)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1139.58,-1764.54,29.09);
SetPlayerFacingAngle(playerid, 266.1588);
SetPlayerVirtualWorld(playerid,0);
gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
RegistrationStep[playerid] = 1;
//SendClientMessage(playerid, COLOR_YELLOW, "Bem-vindo ao Brasil Stylle RPG, por favor preencha algumas informacoes para prosseguir.");
//SendClientMessage(playerid, COLOR_LIGHTRED, "Voce e Homem ou Mulher?");
format(string,sizeof(string),"~b~ Seja Bem Vindo~n~~w~Agora voce tem que preencher~n~Algumas informacoes necessarias~n~Para completar seu Cadastro.~n~E depois acompanhara,~n~O Tutorial Esplicando como~n~Ser um bom Jogador.");
TextDrawSetString(TutuText[playerid], string);
TextDrawHideForPlayer(playerid, TutuBox[playerid]);
TextDrawHideForPlayer(playerid, TutuText[playerid]);
TextDrawShowForPlayer(playerid, TutuBox[playerid]);
TextDrawShowForPlayer(playerid, TutuText[playerid]);
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Brasil Stylle RPG", "Escolha Seu Sexo Por Favor.\nNгo esqueзa de Ler as\nInformaзхes de Auto Ajuda\nAparece no canto Esquerdo do Monitor!", "Masculino", "Femino");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
PlayerPlaySound(playerid, 1159, x, y, z);
PlayerPlaySound(playerid, 1159, x, y, z);
PlayerPlaySound(playerid, 1159, x, y, z);
SendClientMessage(playerid,COLOR_GREEN," ");
SendClientMessage(playerid,COLOR_GREEN," ");
SendClientMessage(playerid,COLOR_WHITE,"______________________________________________________________________________");
SendClientMessage(playerid,COLOR_YELLOW,"Seja Bem vindo ao Brasil STylle");
format(string, sizeof(string),". : : | %s Seja bem vindo ao servidor | : : .", pNome(playerid));
SendClientMessage(playerid,COR_GROOVE,string);
SendClientMessage(playerid,COLOR_YELLOW,". : : | Vocк ganhou R$50000 de bonus por se registrar no servidor | : : .");
SendClientMessage(playerid,COR_GROOVE,". : : | Por favor leia o tutorial com atenзгo | : : .");
SendClientMessage(playerid,COLOR_WHITE,"______________________________________________________________________________");
SendClientMessage(playerid,COLOR_GREEN," ");
SendClientMessage(playerid,COLOR_GREEN," ");
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 29, 999);
rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
PoderosoInfo[playerid][pSpawnado] = 1;
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); //285.3481,96.9720,1940.9755,1799.0811
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 3)
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid,193.5507,174.3006,1003.0234);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 4)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,219.4918,109.6652,999.0156);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if(PlayerInfo[playerid][pJailed] == 5)
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid,344.30,305.20,999.15);
SendClientMessage(playerid, COLOR_LIGHTRED, "Sua sentenca esta incompleta, volte a cadeia.");
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
{
new cut = PlayerInfo[playerid][pLevel]*deathcost; // ou deathcost
GivePlayerMoneyEx(playerid, -500);
format(string, sizeof(string), "Seu mйdico lhe cobrou 500$, tenha um bom dia", cut);
SendClientMessage(playerid, TEAM_CYAN_COLOR, string);
MedicBill[playerid] = 0;
MedicTime[playerid] = 0;
NeedMedicTime[playerid] = 0;
PlayerInfo[playerid][pDeaths] += 1;
CofreOrg[13][Dinheiro] += cut;
CofreOrg[14][Dinheiro] += cut;
}
if(house != NONE_CAR)
{
if(SpawnChange[playerid]) //If 1, then you get to your house, else spawn somewhere else
{
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
SetPlayerVirtualWorld(playerid,HouseInfo[house][hWorld]);
SetPlayerPos(playerid, HouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
PlayerInfo[playerid][pLocal] = house;
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// PM LS
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1530.7992,-1669.0005,6.2188);
SetPlayerFacingAngle(playerid, 272.3188);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)// ROTA LS
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1530.7992,-1669.0005,6.2188);
SetPlayerFacingAngle(playerid, 272.3188);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)// PM LV
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid,246.0993,185.7880,1008.1719);
SetPlayerFacingAngle(playerid, 353.8712);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)// PC
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid,211.1279,186.5576,1003.0313);
SetPlayerFacingAngle(playerid, 177.7632);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)// Exercito
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,-1522.22,478.43,7.19);
SetPlayerFacingAngle(playerid, 180.1698);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)// Alqaeda
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,414.8741,2533.6211,19.1484);
SetPlayerFacingAngle(playerid, 90.0002);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)// F.A.R.C
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,-491.3770,-193.8029,78.3474);
SetPlayerFacingAngle(playerid, 0.6409);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)// Los Aztecas
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 1675.1698,-2121.0886,13.5469);
SetPlayerFacingAngle(playerid,316.1795);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)// Groove
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2495.3799,-1689.3333,14.3655);
SetPlayerFacingAngle(playerid,1.6557);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)// Vagos
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2351.9451,-1168.7489,27.9805);
SetPlayerFacingAngle(playerid,1.5253);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)// Ballas
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2090.9136,-1279.1019,26.1271);
SetPlayerFacingAngle(playerid,182.9264);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)// Os Maiorais
{
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 725.7486,-1438.9991,13.5391);
SetPlayerFacingAngle(playerid,1.5702);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)// S.A.M.U (LS)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1177.9160,-1323.2394,14.0943);
SetPlayerFacingAngle(playerid, 277.1077);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)// S.A.M.U (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1607.3260,1818.6774,10.8203);
SetPlayerFacingAngle(playerid, 6.1621);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)// Los Santos News
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 735.9105,-1352.2034,13.5000);
SetPlayerFacingAngle(playerid, 298.6588);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)// Las Venturas News
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 1894.6057,1164.6492,10.8203);
SetPlayerFacingAngle(playerid, 92.1980);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)// San Andreas News
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2269.5281,-75.7655,26.7724);
SetPlayerFacingAngle(playerid, 182.8208);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)// Hitmans
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 1103.3834,-299.2432,73.9851);
SetPlayerFacingAngle(playerid, 90.4997);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)// Policia Federal
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, -1390.02,2638.46,55.98);
SetPlayerFacingAngle(playerid, 82.3598);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)// Instrutor
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 3;
SetPlayerPos(playerid, -2027.5571,-104.4862,1035.1719);
SetPlayerFacingAngle(playerid, 188.8397);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)// Taxista (LS)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 1771.4291,-1895.0471,13.5548);
SetPlayerFacingAngle(playerid, 270.1410);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2840.3606,1290.8441,11.3906);
SetPlayerFacingAngle(playerid, 90.7402);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2145.3311,2834.6721,10.8203);
SetPlayerFacingAngle(playerid, 91.7390);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2490.4626,918.6837,11.0234);
SetPlayerFacingAngle(playerid, 84.0135);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 1947.7131,2068.8250,10.8203);
SetPlayerFacingAngle(playerid, 85.6671);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 26 || PlayerInfo[playerid][pLeader] == 26)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2518.5771,2033.4734,11.1719);
SetPlayerFacingAngle(playerid, 87.9608);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 27 || PlayerInfo[playerid][pLeader] == 27)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 2449.1343,1284.0663,11.1825);
SetPlayerFacingAngle(playerid, 185.6749);
SetPlayerVirtualWorld(playerid,0);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 28 || PlayerInfo[playerid][pLeader] == 28)// Taxista (LV)
{
SetPlayerInterior(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,1515.37,-1845.92,13.55);
SetPlayerFacingAngle(playerid,275.2902);
SetPlayerVirtualWorld(playerid,1);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 29 || PlayerInfo[playerid][pLeader] == 29)// Taxista (LV)
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 357.3491,206.7505,1008.3828);
SetPlayerFacingAngle(playerid,275.2902);
SetPlayerVirtualWorld(playerid,2);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pMember] == 30 || PlayerInfo[playerid][pLeader] == 30)// Taxista (LV)
{
SetPlayerInterior(playerid, 3);
PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid, 357.3491,206.7505,1008.3828);
SetPlayerFacingAngle(playerid, 275.2902);
SetPlayerVirtualWorld(playerid,3);
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pOrigin] == 1)//Los Santos
{
SetPlayerPos(playerid,1154.29,-1768.96,16.59);
SetPlayerFacingAngle(playerid, 0.8003);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pOrigin] == 2)//Las Venturas
{
SetPlayerPos(playerid, 2454.2234,1499.3406,11.5704);
SetPlayerFacingAngle(playerid, 131.0550);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
if (PlayerInfo[playerid][pOrigin] == 3)//San Fierro em breve ^^
{
SetPlayerPos(playerid,1154.29,-1768.96,16.59);
SetPlayerFacingAngle(playerid, 0.8003);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
PoderosoInfo[playerid][pSpawnado] = 1;
return 1;
}
}
return 1;
}
Bom isso nгo й um bug, й sу que eu queria isso, ao morrer ou relogar, a skin de lнder voltar, pois tem muitos lideres que muda skin...