Jump to content
  • 0

Intrebare GetVehicleParamsEx...


Question

Posted

Sall..

am o intrebare despre GetVehicleParamsEx..

ma intrebam daca se pot folosi in modul acesta:

if ( GetVehicleParamsEx( vehicle, engine, lights, alarm, doors, bonnet, boot, objective ) );
{
    GetVehicleParamsEx( vehicleid, engine, lights, alarm, 1, bonnet, boot, objective );
    return SendClientMessage( playerid, RED, "Deja ai incuiate usile!" );
}

?

Fara reclama in semnatura!

5 answers to this question

Recommended Posts

Posted

Sall..

am o intrebare despre GetVehicleParamsEx..

ma intrebam daca se pot folosi in modul acesta:

if ( GetVehicleParamsEx( vehicle, engine, lights, alarm, doors, bonnet, boot, objective ) );
{
    GetVehicleParamsEx( vehicleid, engine, lights, alarm, 1, bonnet, boot, objective );
    return SendClientMessage( playerid, RED, "Deja ai incuiate usile!" );
}

?

Nu, nu poti face asta, decat folosind o variabila.

Posted

a da ai dreptate ms :)) lol...

Ai zis la misto sau ai rezolvat-o ?

new engine, lights, alarm, DOORS, bonnet, boot, objective;
GetVehicleParamsEx( vehicleid, engine, lights, alarm, DOORS, bonnet, boot, objective );
if( DOORS == 0 )
{
    SetVehicleParamsEx( vehicleid, engine, lights, alarm, 1, bonnet, boot, objective );
    return SendClientMessage( playerid, RED, "Ai incuiat usile !" );
}

Statusul componentei trebuie retinuta intr-o variabila, apoi verificata.

Razvann, daca nu vrei sa ajuti, nu mai posta.

Posted

Daca te simti folosit, posteaza macar ceva calumea

[pawn]new bool: Doors[MAX_VEHICLES];

new engine, lights, alarm, doors, bonnet, boot, objective;

GetVehicleParamsEx( vehicleid, engine, lights, alarm, doors, bonnet, boot, objective );

if(!Doors[vehicleid])

{

SetVehicleParamsEx( vehicleid, engine, lights, alarm, VEHICLE_PARAMS_ON, bonnet, boot, objective );

Doors[vehicleid] = true;

SendClientMessage(playerid,-1,"Ai incuiat usile!");

return true;

}

else

{

SetVehicleParamsEx( vehicleid, engine, lights, alarm, VEHICLE_PARAMS_OFF, bonnet, boot, objective );

Doors[vehicleid] = false;

SendClientMessage(playerid,-1,"Ai deschis usile!");

return true;

}

[/pawn]

Btw: crezi ca postez ca sa fac posturi? :)

Posted

hey guys am rezolvat :))...am uitat ca folosesc if ( C_DATA[ playerid ][ CarLocked ] ) return Send..etc...srry ;) si am uitat ca o folosesc si mam  incurcat cu GetVehicleParamsEx...sryy:))

Fara reclama in semnatura!

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.