Jump to content
  • 0

Intrebare GetVehicleParamsEx...


xxSPEEDYxx

Question

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!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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? :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.