Jump to content

help aici


Recommended Posts

Ai deja asta, dar daca este motorul pornit poti merge cu masina.. Daca atasezi aia de mai sus la un timer o sa-ti opreasca motorul daca este pornit(trebuie facuta si o verificare daca e oprit sa nu ruleze functia aiurea)

if(health < 500) return SendClientMessage(playerid, COLOR_RED, "Engine cannot start!");
Link to comment
Share on other sites

    SendClientMessage(playerid, 0xFFCCCC, "(IN-CAR)*Press 2 or type /engine to start/stop vehicle engine.*");
    SendClientMessage(playerid, 0xFFCCCC, "(IN-CAR)*Type /lights to enable/disable vehicle lights.*");
    SendClientMessage(playerid, 0xFFCCCC, "(IN-CAR)*Type /seatbelt to enable/disable your seatbelt.*");
    new Float:health;
    new veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
    if(health < 430) return SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_OFF, 0, 0, 0, 0, 0, 0);
    SendClientMessage(playerid, COLOR_RED, "Engine has serious problems! Please Call A Mechanic!");
    return 1;

acuma ideea e ca merge, dar idee e ca nu prea merge verificarea, intru in masina, si chiar daca ea are 1000 hp, tot ruleaza functia.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.