Would you like to react to this message? Create an account in a few clicks or log in to continue.

    [TUT]auto pre určite povolanie

    avatar
    dajmon
    Nováčik


    Posts : 18
    Join date : 26.04.2011

    [TUT]auto pre určite povolanie Empty [TUT]auto pre určite povolanie

    Odoslať pre dajmon Ut apríl 26, 2011 9:19 am

    cawte tak toto nieje absolutne nic tazke ani neni co velmi vysvetlovat:
    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");
    }
    no este dodat ze != znamena ze musi mat premenu povolania na 1

      Similar topics

      -

      Práve je So november 23, 2024 4:15 am