cawte tak toto nieje absolutne nic tazke ani neni co velmi vysvetlovat:
do OnPlayerEnterVehicle-
do OnPlayerEnterVehicle-
- kód:
new model = GetVehicleModel(vehicleid); //zisti model auta
if(model == vehicleid && !ispassenger && premena[playerid] != 1) //vehicleid = id auta , premena = vasa premena povolania
{
TogglePlayerControllable(playerid, 1); //zamrazi ho cize ho nepusti do auta
SendClientMessage(playerid, COLOR_CERVENA, "[!]vas text co napise ked nemoze vstupit napr. toto auto moze riatit iba kamionista");
}