public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid = GetPlayerVehicleID(playerid);
//_______________________________________________________PoliceDepartment Vozila
if(vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila)
{
if(PlayerInfo == 1 || PlayerInfo == 1){ }
else
{
if(GetPlayerVehicleSeat(playerid) != 0 ) return true;
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila || vehicleid == PDVozila)
{
if(PlayerInfo == 1 || PlayerInfo == 1){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//___________________________________________________________Grove Street Vozila
if(vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila)
{
if(PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == GroveVozila || vehicleid == SSLVozila || vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila)
{
if(PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_________________________________________________________________Ballas Vozila
if(vehicleid == BallasVozila || vehicleid == BallasVozila || vehicleid == BallasVozila || vehicleid == BallasVozila)
{
if(PlayerInfo == 3 || PlayerInfo == 3 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Ballas Gang' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == BallasVozila || vehicleid == BallasVozila || vehicleid == BallasVozila || vehicleid == BallasVozila || vehicleid == BallasVozila)
{
if(PlayerInfo == 3 || PlayerInfo == 3 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Ballas Gang' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//______________________________________________________SouthSide Locotes Vozila
if(vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila)
{
if(PlayerInfo == 4 || PlayerInfo == 4 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'SouthSide Locotes' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila || vehicleid == SSLVozila)
{
if(PlayerInfo == 4 || PlayerInfo == 4 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'SouthSide Locotes' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//____________________________________________________________TheBlueEyes Vozila
if(vehicleid == TBEVozila || vehicleid == TBEVozila || vehicleid == TBEVozila)
{
if(PlayerInfo == 5 || PlayerInfo == 5 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'The Blue Eyes' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == TBEVozila || vehicleid == TBEVozila || vehicleid == TBEVozila || vehicleid == TBEVozila || vehicleid == TBEVozila)
{
if(PlayerInfo == 5 || PlayerInfo == 5 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'The Blue Eyes' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//___________________________________________________________LaCosaNostra Vozila
if(vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila)
{
if(PlayerInfo == 6 || PlayerInfo == 6 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'La Cosa Nostra' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila || vehicleid == LCNVozila)
{
if(PlayerInfo == 6 || PlayerInfo == 6 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'La Cosa Nostra' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_________________________________________________________________Hitman Vozila
if(vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila)
{
if(PlayerInfo == 7 || PlayerInfo == 7 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila)
{
if(PlayerInfo == 7 || PlayerInfo == 7 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste clan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_________________________________________________________________Grobar Vozila
if(vehicleid == GROBARVozila || vehicleid == GROBARVozila)
{
if(PlayerInfo == 1 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Grobar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == GROBARVozila || vehicleid == GROBARVozila || vehicleid == GROBARVozila)
{
if(PlayerInfo == 1 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Grobar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_________________________________________________________________Postar Vozila
if(vehicleid == POSTARVozila || vehicleid == POSTARVozila)
{
if(PlayerInfo == 2 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Postar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == POSTARVozila || vehicleid == POSTARVozila || vehicleid == POSTARVozila)
{
if(PlayerInfo == 2 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Postar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//___________________________________________________________Elektronicar Vozila
if(vehicleid == ELEKTRONICARVozila || vehicleid == ELEKTRONICARVozila || vehicleid == ELEKTRONICARVozila)
{
if(PlayerInfo == 3 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Elektronicar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == ELEKTRONICARVozila || vehicleid == ELEKTRONICARVozila || vehicleid == ELEKTRONICARVozila)
{
if(PlayerInfo == 3 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Elektronicar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_________________________________________________________________Smecar Vozila
if(vehicleid == SMECARVozila || vehicleid == SMECARVozila || vehicleid == SMECARVozila)
{
if(PlayerInfo == 4 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Smecar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == SMECARVozila || vehicleid == SMECARVozila || vehicleid == SMECARVozila)
{
if(PlayerInfo == 4 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Smecar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_____________________________________________________________Dostavljac Vozila
if(vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila)
{
if(PlayerInfo == 5 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Dostavljac'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila || vehicleid == DOSTAVLJACVozila)
{
if(PlayerInfo == 5 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Dostavljac '");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_____________________________________________________________Vozac Busa Vozila
if(vehicleid == BUSVozila || vehicleid == BUSVozila || vehicleid == BUSVozila)
{
if(PlayerInfo == 6 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Vozac Busa'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == BUSVozila || vehicleid == BUSVozila || vehicleid == BUSVozila || vehicleid == BUSVozila || vehicleid == BUSVozila)
{
if(PlayerInfo == 6 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Vozac Busa'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_______________________________________________________________Zastitar Vozila
if(vehicleid == ZASTITARVozila || vehicleid == ZASTITARVozila || vehicleid == ZASTITARVozila)
{
if(PlayerInfo == 7 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Zastitar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == ZASTITARVozila || vehicleid == ZASTITARVozila || vehicleid == ZASTITARVozila || vehicleid == ZASTITARVozila)
{
if(PlayerInfo == 7 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Zastitar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//________________________________________________________________Taksist Vozila
if(vehicleid == TAXIVozila || vehicleid == TAXIVozila || vehicleid == TAXIVozila)
{
if(PlayerInfo == 8 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Taksist'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == TAXIVozila || vehicleid == TAXIVozila || vehicleid == TAXIVozila || vehicleid == TAXIVozila || vehicleid == TAXIVozila)
{
if(PlayerInfo == 8 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Taksist'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//________________________________________________________________Pilot Vozila
if(vehicleid == PILOTVozila || vehicleid == PILOTVozila)
{
if(PlayerInfo == 9 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Pilot'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == PILOTVozila || vehicleid == PILOTVozila || vehicleid == PILOTVozila)
{
if(PlayerInfo == 9 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Pilot'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//_______________________________________________________________Bolnicar Vozila
if(vehicleid == BOLNICARVozila || vehicleid == BOLNICARVozila || vehicleid == BOLNICARVozila)
{
if(PlayerInfo == 10 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Bolnicar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == BOLNICARVozila || vehicleid == BOLNICARVozila || vehicleid == BOLNICARVozila || vehicleid == BOLNICARVozila)
{
if(PlayerInfo == 10 || PlayerInfo >= 4){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste zaposleni kao 'Bolnicar'");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
return 1;
}