Detaljan opis problema😛a ovako znaci kada sam ovo imao pod "OnPlayerEnterVehcile" nije bilo errora a kada sam stavio u "OnPlayerStateChange" ima:S
Dio skripte:
//_______________________________________________________PoliceDepartment Vozila
if(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 Älan '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 Älan 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//__________________________________________________________________Grove Vozila
if(vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila)
{
if(PlayerInfo == 3 || PlayerInfo == 3){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste Älan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila || vehicleid == GroveVozila)
{
if(PlayerInfo == 3 || PlayerInfo == 3){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste Älan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//__________________________________________________________________Hitman Vozila
if(vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila)
{
if(PlayerInfo == 8 || PlayerInfo == 8){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste Älan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila || vehicleid == HitmanVozila)
{
if(PlayerInfo == 8 || PlayerInfo == 8){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000} Niste Älan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
