Skripta koju koristim:Moj gm od 0
Detaljan opis problema:Pa 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[12] || vehicleid == PDVozila[13] || vehicleid == PDVozila[14] || vehicleid == PDVozila[15] || vehicleid == PDVozila[16] || vehicleid == PDVozila[17] || vehicleid == PDVozila[18] || vehicleid == PDVozila[19])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == PDVozila[0] || vehicleid == PDVozila[1] || vehicleid == PDVozila[2] || vehicleid == PDVozila[3] || vehicleid == PDVozila[4] || vehicleid == PDVozila[5] || vehicleid == PDVozila[6] || vehicleid == PDVozila[7] || vehicleid == PDVozila[8] || vehicleid == PDVozila[9] || vehicleid == PDVozila[10] || vehicleid == PDVozila[11])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLider] == 1){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Police Department' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//__________________________________________________________________Grove Vozila
if(vehicleid == GroveVozila[4] || vehicleid == GroveVozila[5] || vehicleid == GroveVozila[6] || vehicleid == GroveVozila[7])
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == GroveVozila[0] || vehicleid == GroveVozila[1] || vehicleid == GroveVozila[2] || vehicleid == GroveVozila[3])
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLider] == 3){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Grove Street' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
//__________________________________________________________________Hitman Vozila
if(vehicleid == HitmanVozila[4] || vehicleid == HitmanVozila[5] || vehicleid == HitmanVozila[6] || vehicleid == HitmanVozila[7])
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLider] == 8){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
if(vehicleid == HitmanVozila[0] || vehicleid == HitmanVozila[1] || vehicleid == HitmanVozila[2] || vehicleid == HitmanVozila[3])
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLider] == 8){ }
else
{
SCM(playerid, SVIJETLOPLAVA, "{FF0000}[Greska] Niste Älan 'Hitman Agency' organizacije!");
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
new vehicle = GetPlayerVehicleID(playerid);
new vehicleid = GetPlayerVehicleID(playerid);
to znam i ja ali gdje dodat u to ili gore?
ispred tvog koda, znaci liniju ispred
Bam Bam bam :D
Ty deÄki:D <3