Jump to content

Recommended Posts

Posted (edited)

Salut. Cam prin mai, vroiam sa setez mai multi parametri la o masina. Si, sa folosesc cat mai putine linii, am zis sa incerc sa fac o functie. Zis si facut! Cu ajutorul ei, se pot seta 7 parametri la o masina: win_sofer, win_pasager, win_sofers, win_pasagers, plate[], lights, engine.

 

Stiu ca e ceva simplu, dar, pe mine cel putin, m-a ajutat mult.

 

Cum se foloseste? Puneti include-ul in \pawno\include, iar in gamemode, adaugati #include <PunctRO>.

Pentru a folosi mai usor functia, va recomand ca masinile sa fie indexate(cred ca asa se numere) gen copcar[1] = AddStaticVehicleE(...);, pentru ca mai apoi sa modificati parametri masinii cu UV(copcar[1], 1, 1, 1, 1, "COP 1", 0, 0);.

 

 

 

 

PunctRO.inc

Edited by Punct.
  • Upvote 1

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !

 

My work ::: http://pastebin.com/VRNRcaAs

  • 2 months later...
Posted

Bun include, doar ca ai o gresala.

new alarm, doors, bonnet, boot, objective;
    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);//Trebuia sa dai si Get
Corect
new alarm, doors, bonnet, boot, objective;
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

I'm back bitches.

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.