Jump to content

Question

Posted

Cum fac ca atunci cand apas 2, doar sa imi adauge nitro la masina si sa o repare ?

Ca eu acum cand apas 2, imi repara masina si o tuneaza..

Si as vrea doar sa imi adauge nitro la masina si sa o repare !

Cum pot face asta ?

www.youtube.com/thebwgg

9 answers to this question

Recommended Posts

Posted

Acolo am gasit dar scrie de exemplu:

[pawn] elegy3 = AddStaticVehicle(562,-339.6786,1514.7145,74.9981,0.9466,35,1); // /drift elegy tuned car

AddVehicleComponent(elegy3,1046);

AddVehicleComponent(elegy3,1171);

AddVehicleComponent(elegy3,1149);

AddVehicleComponent(elegy3,1035);

AddVehicleComponent(elegy3,1147);

AddVehicleComponent(elegy3,1036);

AddVehicleComponent(elegy3,1040);

ChangeVehiclePaintjob(elegy3, 2);

ChangeVehicleColor(elegy3, 1, 1);

AddVehicleComponent(elegy3,nitro);

AddVehicleComponent(elegy3,rodawire);

AddVehicleComponent(elegy3,suspensao);[/pawn]

Scrie despre o masina anumita, nu scrie despre toate masinile in general..

www.youtube.com/thebwgg

Posted

Daca sterg tot, /car elegy de la /drift nu o sa mai fie tunat :|

Mai citeste ce am scris la primul post ( unde am pus intrebarea topic-ului ) ca poate n-ai inteles ce am vrut sa spun.

www.youtube.com/thebwgg

Posted

faci asa in loc de acolo unde ai KEY_SUBMISSION

pui asta:

[pawn]

if ( newkeys == KEY_SUBMISSION && IsPlayerInAnyVehicle( playerid ) )

{

new Float:health;

new vehicleid = GetPlayerVehicleID( playerid );

GetVehicleHealth( vehicleid, health );

if ( health < 995 )

{

  RepairVehicle( GetPlayerVehicleID( playerid ) );

                        AddVehicleComponent( vehicleid, 1010 );

}

}

[/pawn]

si gata functia adauga nitro + o repara!

Fara reclama in semnatura!

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.