new JoinPed[53/*Sumarle 1 ya que agregamos 1 skin mas*/][1] = {
{280},//POLICE_FORCE
{281},
{282},
{283},
{284},
{285},
{288},
{71},
{166},
{295},
{148},
{286},//FBI/ATF
{164},
{163},
{287},//NATIONAL_GUARD
{285},
{70},//FIRE/AMBULANCE
{274},
{275},
{276},
{277},
{278},
{279},
{258},//LA_COSA_NOSTRA
{127},
{126},
{125},
{124},
{113},
{111},
{98},
{120},//YAKUZA
{121},
{122},
{123},
{169},
{186},
{228},
{127},//HITMANS
{165},
{186},
{93},
{141},
{148},//NEWS_REPORTERS
{188},
{187},
{255},//TAXI_CAB_COMPANY
{253},
{59},//DRIVING/FLYING_SCHOOL
{60},//DRIVING/FLYING_SCHOOL
{76},//DRIVING/FLYING_SCHOOL
{150}, //agregar la coma
{294}
};
switch (SelectCharID[playerid])
{
case 1: //Police Force
{ etc..
case 11: //Driving/Flying School
{
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 2; ChosenSkin[playerid] = JoinPed[48][0]; }
else if(SelectCharPlace[playerid] == 2) { SetPlayerSkin(playerid, JoinPed[49][0]); SelectCharPlace[playerid] = 3; ChosenSkin[playerid] = JoinPed[49][0]; }
else if(SelectCharPlace[playerid] == 3) { SetPlayerSkin(playerid, JoinPed[50][0]); SelectCharPlace[playerid] = 4; ChosenSkin[playerid] = JoinPed[50][0]; }
else if(SelectCharPlace[playerid] == 4) { SetPlayerSkin(playerid, JoinPed[51][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[51][0]; }
}
case 12: //Nuestra Faccion
if(SelectCharPlace[playerid] == 1) { SetPlayerSkin(playerid, JoinPed[48][0]); SelectCharPlace[playerid] = 1; ChosenSkin[playerid] = JoinPed[52/*Se debe poner 1 mas q el maximo de la faccion anterior*/][0]; }
}
return 0;
}
if(IsAnInstructor(playerid)) //Driving/Flying School spawn
{
if(SchoolSpawn[playerid] == 0)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, -2032.6810,-117.4816,1035.1719);
SetPlayerFacingAngle(playerid, 275.1114);
SetPlayerInterior(playerid,3);
PlayerInfo[playerid][pInt] = 3;
}
else if(SchoolSpawn[playerid] == 1)
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, 414.4144,2531.9580,19.1565);
SetPlayerFacingAngle(playerid, 4.6505);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
return 1;
}
if (PlayerInfo[playerid][pMember] == 12/*Numero de la Faccion*/ || PlayerInfo[playerid][pLeader] == 12) //Estos son los Spawn de nuestra faccion
{
SetPlayerToTeamColor(playerid);
SetPlayerPos(playerid, X,Y,Z);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
return 1;
}
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Medico"; }
else if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Civiles"; }
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1) { ttext = "Oficial"; }
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2) { ttext = "Agente FBI"; }
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3) { ttext = "Guarda Naiona"; }
else if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4) { ttext = "Bomberos"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5) { ttext = "LCN"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6) { ttext = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == { ttext = "Hitmen"; }
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9) { ttext = "Reporteros"; }
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10) { ttext = "Taxistas"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11) { ttext = "Licencieros"; }
else if(PlayerInfo[targetid][pMember] == 12/*Recuerden el NUmero de la Faccion*/ || PlayerInfo[targetid][pLeader] == 12) { ttext = "Nombre Faccion"; }
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
{
else if(PlayerInfo[targetid][pMember] == 12 || PlayerInfo[targetid][pLeader] == 12)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "En Entrenamiento"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sargento"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "General"; }
else { rtext = "En Entrenamiento"; }
else if(PlayerInfo[playerid][pLeader] == 12) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Faccion"; ChosenSkin[para1] = 294(Skin del Jefe); SetPlayerSkin(para1,294(Skin del Jefe)); }
if(member==12)
{
if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "**(( Jefa %s: %s. ))**", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "**(( Lady %s: %s. ))**", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "**(( Seсorita %s: %s. ))**", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "**(( Novata %s: %s. ))**", sendername, result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "**(( Aspirante %s: %s. ))**", sendername, result); }
else { format(string, sizeof(string), "**(( Aspirante %s: %s. ))**", sendername, result); }
SendFamilyMessage(PlayerInfo[playerid][pMember], TEAM_BLUE_COLOR, string)
format(string, sizeof(string), "**(( Jefa %s: %s. ))**", sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pLeader], TEAM_AZTECAS_COLOR, string);
forward ejemplo(carid);
public yakuza(carid)
{
if((carid >= ejemplo) && (carid <= Hasta))
{
return 1;
}
return 0;
}
public ejemplo(carid)
{
if((carid >= 305) && (carid <= 311))
{
return 1;
}
return 0;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
if(ejemplo(newcar))
{
if(PlayerInfo[playerid][pMember] == IDdeFaccion||PlayerInfo[playerid][pLeader] == IDdeFaccion) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY,"Usted no pertenece a esta faccion.");}
}
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);//arriba del todo
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)//abajo del todo despuйs del ultimo "}"
{
if(IsPlayerConnected(playerid))
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
}
return 0;
}
Originally Posted by leoals
gracias
|