Prvo sam dodavao vozila vojske
new autosk1,autosk2,autosk3,autosk4;
new automeh1,automeh2,automeh3,automeh4;
new autops1,autops2,autops3,autops4,autops5,autops6,autops7;
new pdvozilo1,pdvozilo2,pdvozilo3,pdvozilo4,pdvozilo5,pdvozilo6,pdvozilo7,pdvozilo8,pdvozilo9,pdvozilo10,pdvozilo11,pdvozilo12,pdvozilo13,pdvozilo14,pdvozilo15,pdvozilo16,pdvozilo17,pdvozilo18,pdvozilo19,pdvozilo20,pdvozilo21,pdvozilo22;
new fbivozilo1,fbivozilo2,fbivozilo3,fbivozilo4,fbivozilo5,fbivozilo6,fbivozilo7,fbivozilo8,fbivozilo9,fbivozilo10,fbivozilo11,fbivozilo12,fbivozilo13;
new taxivozilo1,taxivozilo2,taxivozilo3,taxivozilo4,taxivozilo5,taxivozilo6,taxivozilo7,taxivozilo8,taxivozilo9,taxivozilo10,taxivozilo11;
new novinarvozilo1,novinarvozilo2,novinarvozilo3,novinarvozilo4,novinarvozilo5,novinarvozilo6,novinarvozilo7,novinarvozilo8;
new adminvozilo1,adminvozilo2,adminvozilo3,adminvozilo4,adminvozilo5,adminvozilo6,adminvozilo7,adminvozilo8,adminvozilo9,adminvozilo10,adminvozilo11,adminvozilo12,adminvozilo13,adminvozilo14;
new helpervozilo1,helpervozilo2,helpervozilo3,helpervozilo4,helpervozilo5,helpervozilo6,helpervozilo7,helpervozilo8,helpervozilo9,helpervozilo10,helpervozilo11,helpervozilo12,helpervozilo13,helpervozilo14,helpervozilo15;
new vipvozilo1,vipvozilo2,vipvozilo3,vipvozilo4,vipvozilo5,vipvozilo6,vipvozilo7,vipvozilo8,vipvozilo9,vipvozilo10,vipvozilo11,vipvozilo12,vipvozilo13,vipvozilo14,vipvozilo15,vipvozilo16,vipvozilo17,vipvozilo18,vipvozilo19,vipvozilo20,vipvozilo21,vipvozilo22;
new vojnovozilo1,vojnovozilo2,vojnovozilo3,vojnovozilo4,vojnovozilo5,vojnovozilo6,vojnovozilo7,vojnovozilo8,vojnovozilo9,vojnovozilo10,vojnovozilo11,vojnovozilo12,
vojnovozilo13,vojnovozilo14,vojnovozilo15,vojnovozilo16,vojnovozilo17,vojnovozilo18,vojnovozilo19,vojnovozilo20,
vojnovozilo21,vojnovozilo22,vojnovozilo23,vojnovozilo24,vojnovozilo25,vojnovozilo26,vojnovozilo27,vojnovozilo28,vojnovozilo29,vojnovozilo30,vojnovozilo31,
vozilo32,vojnovozilo33,vojnovozilo34,vojnovozilo35,vojnovozilo36,vojnovozilo37,vojnovozilo38,vojnovozilo39,vojnovozilo40,vojnovozilo41,vojnovozilo42,vojnovozilo43,vojnovozilo44,vojnovozilo45,vojnovozilo46,vojnovozilo47,vojnovozilo48,vojnovozilo49,vojnovozilo50,vojnovozilo51,vojnovozilo52,vojnovozilo53,vojnovozilo54,vojnovozilo55,vojnovozilo56,vojnovozilo57,vojnovozilo58,vojnovozilo59,vojnovozilo60,vojnovozilo61,vojnovozilo62,vojnovozilo63,vojnovozilo64;
Zatim sam samo pratio kako su dodavana FBI kola i iso sam ovako:
public IsAnFbiCar(carid)
{
if((carid >= 23) && (carid <= 35))
{
return 1;
}
return 0;
}
public IsAnVojskaCar(carid)
{
if((carid >= 36) && (carid <= 99))
{
return 1;
}
return 0;
}
if (PlayerInfo == 2 || PlayerInfo == 2)//FBI spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 299.7097,183.1322,1007.1719);
SetPlayerFacingAngle(playerid, 90);
PlayerInfo = 3;
return 1;
}
if (PlayerInfo == 4 || PlayerInfo == 4)//Fire/Ambulance spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 2289.8146,-1209.5230,-18.0088);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 5 || PlayerInfo == 5)//LCN spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 1265.4475,-794.9257,1084.0078);
PlayerInfo = 5;
return 1;
}
if (PlayerInfo == 6 || PlayerInfo == 6)//TEC spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 2);
JBC_SetPlayerPos(playerid, 2575.4766,-1283.1080,1037.7734);
PlayerInfo = 2;
return 1;
}
if (PlayerInfo == 8 || PlayerInfo == 8)//GHS spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
JBC_SetPlayerPos(playerid, 691.5738,-1275.8729,13.5607);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 9 || PlayerInfo == 9) //News spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,3);
JBC_SetPlayerPos(playerid, 355.7899,204.0173,1008.3828);
PlayerInfo = 3;
SafeJBC_GivePlayerWeapon(playerid, 43, 20);
return 1;
}
if (PlayerInfo == 10 || PlayerInfo == 10) //Taxi Cab Company spawn
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 1219.2488,-1811.7144,16.5938);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 11 || PlayerInfo == 11) //Yakuza
{
SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 2770.6953,-1628.7224,12.1775);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
if(PlayerInfo == 12 || PlayerInfo == 12) //PS SPAWN
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid,0);
JBC_SetPlayerPos(playerid, 1080.2466,-926.5995,43.1797);
PlayerInfo = 0;
return 1;
}
if (PlayerInfo == 15 || PlayerInfo == 15)//Vagos spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 5);
JBC_SetPlayerPos(playerid, 321.8823,1127.9375,1083.8828);
PlayerInfo = 5;
return 1;
}
if (PlayerInfo == 16 || PlayerInfo == 16)//grove spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 3);
JBC_SetPlayerPos(playerid, 2495.2605,-1703.7449,1018.3438);
PlayerInfo = 2;
return 1;
}
if (PlayerInfo == 17 || PlayerInfo == 17) //vojska spawn
{ SetPlayerToTeamColor(playerid);
JBC_SetPlayerPos(playerid, 2770.6953,-1628.7224,12.1775);
SetPlayerInterior(playerid,0);
PlayerInfo = 0;
return 1;
}
if(IsAnFbiCar(newcar))
{
if(PlayerInfo == 2||PlayerInfo == 2) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY," Nemate kljuceve od ovog vozila.");}
}
if(IsAnVojskaCar(newcar))
{
if(PlayerInfo == 17||PlayerInfo == 17) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY," Nemate kljuceve od ovog vozila.");}
}
if(PlayerInfo == 4 || PlayerInfo == 4) { ttext = "Medic"; }
else if(gTeam == 3 || gTeam == 4) { ttext = "Civilian"; }
else if(PlayerInfo == 1 || PlayerInfo == 1) { ttext = "LS PD"; }
else if(PlayerInfo == 2 || PlayerInfo == 2) { ttext = "FBI"; }
else if(PlayerInfo == 4 || PlayerInfo == 4) { ttext = "LS MD"; }
else if(PlayerInfo == 5 || PlayerInfo == 5) { ttext = "LCN"; }
else if(PlayerInfo == 6 || PlayerInfo == 6) { ttext = "The Escobar Cartel"; }
else if(PlayerInfo == 7 || PlayerInfo == 7) { ttext = "Gradonacelnik"; }
else if(PlayerInfo == 8 || PlayerInfo == 8) { ttext = "GHS"; }
else if(PlayerInfo == 9 || PlayerInfo == 9) { ttext = " Novinar"; }
else if(PlayerInfo == 10 || PlayerInfo == 10) { ttext = "Taxi"; }
else if(PlayerInfo == 11 || PlayerInfo == 11) { ttext = "Yakuza"; }
else if(PlayerInfo == 15 || PlayerInfo == 15) { ttext = "Vagos"; }
else if(PlayerInfo == 16 || PlayerInfo == 16) { ttext = "Grove Street Family"; }
else if(PlayerInfo == 17 || PlayerInfo == 17) { ttext = "Vojska"; }
new dtext;
if(STDPlayer == 1) { dtext = "Chlamydia"; }
else if(STDPlayer == 2) { dtext = "Gonorrhea"; }
else if(STDPlayer == 3) { dtext = "Syphilis"; }
else { dtext = "None"; }
new ftext;
if(PlayerInfo == 1 || PlayerInfo == 1)
{ ftext = "LSPD"; }
if(PlayerInfo == 2 || PlayerInfo == 2)
{ ftext = "FBI"; }
else if(PlayerInfo == 4 || PlayerInfo == 4)
{ ftext = "LSMD"; }
else if(PlayerInfo == 5 || PlayerInfo == 5)
{ ftext = "LCN"; }
else if(PlayerInfo == 6 || PlayerInfo == 6)
{ ftext = "The Escobar Cartel"; }
else if(PlayerInfo == 7 || PlayerInfo == 7)
{ ftext = "Gradonacelnik"; }
else if(PlayerInfo == 8 || PlayerInfo == 8)
{ ftext = "GHS"; }
else if(PlayerInfo == 9 || PlayerInfo == 9)
{ ftext = " Novinari"; }
else if(PlayerInfo == 10 || PlayerInfo == 10)
{ ftext = "Taxi"; }
else if(PlayerInfo == 11 || PlayerInfo == 11)
{ ftext = "Yakuza"; }
else if(PlayerInfo == 15 || PlayerInfo == 15)
{ ftext = "Vagos"; }
else if(PlayerInfo == 16 || PlayerInfo == 16)
{ ftext = "Grove Street Family"; }
else if(PlayerInfo == 17 || PlayerInfo == 17)
{ ftext = "Vojska"; }
else
{ ftext = "None"; }
new f2text;
if(PlayerInfo < 255) { f2text = FamilyInfo[PlayerInfo]; }
else { f2text = "None"; }
new rtext;
if(gTeam == 5 || PlayerInfo < 255)
{
if(PlayerInfo == 1) { rtext = "Outsider"; }
else if(PlayerInfo == 2) { rtext = "Associate"; }
else if(PlayerInfo == 3) { rtext = "Soldier"; }
else if(PlayerInfo == 4) { rtext = "Capo"; }
else if(PlayerInfo == 5) { rtext = "Underboss"; }
else if(PlayerInfo == 6) { rtext = "Godfather"; }
else { rtext = "Outsider"; }
}
else if(PlayerInfo == 1 || PlayerInfo == 1)//PD Ranks
{
if(PlayerInfo == 1) { rtext = "Cadet"; }
else if(PlayerInfo == 2) { rtext = "Police Officer"; }
else if(PlayerInfo == 3) { rtext = "Corporal"; }
else if(PlayerInfo == 4) { rtext = "Sergeant"; }
else if(PlayerInfo == 5) { rtext = "Lieutenant"; }
else if(PlayerInfo == 6) { rtext = "Captain"; }
else if(PlayerInfo == 7) { rtext = "Deputy Chief"; }
else if(PlayerInfo == 8) { rtext = "Chief"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo == 2 || PlayerInfo == 2)//FBI Ranks
{
if(PlayerInfo == 1) { rtext = "Professional Staff"; }
else if(PlayerInfo == 2) { rtext = "Special Agent Trainee"; }
else if(PlayerInfo == 3) { rtext = "Special Agent"; }
else if(PlayerInfo == 4) { rtext = "Special Agent in Charge"; }
else if(PlayerInfo == 5) { rtext = "Assistant Director in Charge"; }
else if(PlayerInfo == 6) { rtext = "Director"; }
else { rtext = "Intern"; }
}
else if(PlayerInfo == 5 || PlayerInfo == 5)//Vagos Ranks
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Rank 1"; }
}
else if(PlayerInfo == 6 || PlayerInfo == 6)//The Escobar Cartel Ranks
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Rank 1"; }
}
else if(PlayerInfo == 7)//VLADA RANKOVI
{
if(PlayerInfo == 1) { rtext = "Vozac Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Vozac Rank 2"; }
else if(PlayerInfo == 3) { rtext = "BodyGuard Rank 1"; }
else if(PlayerInfo == 4) { rtext = "BodyGuard Rank 2"; }
else if(PlayerInfo == 5) { rtext = "PotGradonacelnik"; }
else if(PlayerInfo == 7) { rtext = "Lider"; }
else { rtext = "None"; }
}
else if(PlayerInfo == 8 || PlayerInfo == 8)//GHS Ranks
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Rank 1"; }
}
else if(PlayerInfo == 9 || PlayerInfo == 9)//NOVINARI RANK
{
if(PlayerInfo == 1) { rtext = "Intern Worker"; }
else if(PlayerInfo == 2) { rtext = "Journalist"; }
else if(PlayerInfo == 3) { rtext = "Head Journalist"; }
else if(PlayerInfo == 4) { rtext = "Company Secretary"; }
else if(PlayerInfo == 5) { rtext = "ABC Manager"; }
else if(PlayerInfo == 6) { rtext = "Network Producer"; }
else { rtext = "Intern Worker"; }
}
else if(PlayerInfo == 10 || PlayerInfo == 10)//TAXI RANKOVI
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Trainee"; }
}
else if(PlayerInfo == 11 || PlayerInfo == 1)//Yakuza
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Rank 1"; }
}
else if(PlayerInfo == 15 || PlayerInfo == 15)//GROVE RANKOVI
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Outsider"; }
}
else if(PlayerInfo == 16 || PlayerInfo == 16)//GROVE RANKOVI
{
if(PlayerInfo == 1) { rtext = "Rank 1"; }
else if(PlayerInfo == 2) { rtext = "Rank 2"; }
else if(PlayerInfo == 3) { rtext = "Rank 3"; }
else if(PlayerInfo == 4) { rtext = "Rank 4"; }
else if(PlayerInfo == 5) { rtext = "Rank 5"; }
else if(PlayerInfo == 6) { rtext = "Lider"; }
else { rtext = "Dumb Hoe"; }
}
else if(PlayerInfo == 17 || PlayerInfo == 17)//Vagos Ranks
{
if(PlayerInfo == 1) { rtext = "Zastavnik"; }
else if(PlayerInfo == 2) { rtext = "Vojnik"; }
else if(PlayerInfo == 3) { rtext = "Porucnik"; }
else if(PlayerInfo == 4) { rtext = "Podpukovnik"; }
else if(PlayerInfo == 5) { rtext = "Pukovnik"; }
else if(PlayerInfo == 6) { rtext = "Kapetan"; }
else { rtext = "Rank 1"; }
}
else
{
rtext = "None";
}
new jtext;
if(PlayerInfo == 1) { jtext = "Drvosjeca"; }
else if(PlayerInfo == 2) { jtext = "Postar"; }
else if(PlayerInfo == 3) { jtext = "Prostitutka"; }
else if(PlayerInfo == 4) { jtext = "Vozac Goriva"; }
else if(PlayerInfo == 7) { jtext = "Automehanicar"; }
else if(PlayerInfo == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo == 9) { jtext = "Pilot"; }
else if(PlayerInfo == 12) { jtext = "Bokser"; }
else if(PlayerInfo == 14) { jtext = "Vozac Busa"; }
else if(PlayerInfo == 15) { jtext = "Raznosac novina"; }
else if(PlayerInfo == 16) { jtext = "Kamiondzija"; }
else if(PlayerInfo == 17) { jtext = "Raznosac pice"; }
else if(PlayerInfo == 18) { jtext = "Farmer"; }
else if(PlayerInfo == 21) { jtext = "Cistac Ulica"; }
else if(PlayerInfo == 23) { jtext = "Komunalac"; }
else if(PlayerInfo == 28) { jtext = "Kosac Trave"; }
else if(PlayerInfo == 30) { jtext = "Security"; }
else { jtext = "Nezaposlen"; }
new drank;
Pa pogledaj ima li problema ako nebude idemo dalje