Jump to content
  • 0

Intrebare imunitate masina.


Gawitkkk

Question

Problema intalnita (descriere): Nu este o problemă, ci o întrebare. Atunci când scriu o comanda, se spawneaza o mașină si mă pune în ea, urmând să încep lucrul la job-ul respectiv. Însă cum pot face ca atunci când sunt în mașină, nici eu și nici vehiculul să nu mai lom damage? Un fel de invulnerabilitate cât timp conduc vehiculul..
Ero(area / rile) / warning-(ul / urile): -
Liniile de cod / sursa / script-ul(obligatoriu): -
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, momentan am pus SetVehicleHealth(cargarbage[playerid], 100000000000); pana aflu cum pot pune direct imunitate.

Edited by Gawitkkk
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Ati incercat sa rezolvati singur?: Da, momentan am pus SetVehicleHealth(cargarbage[playerid], 100000000000); pana aflu cum pot pune direct imunitate.

​Asta e si rezolvarea :).

242086.png

Link to comment
Share on other sites

  • 0

Incearca sa folosesti aceasta metoda:

    new Float:health;
    new veh = GetPlayerVehicleID(playerid);
    
    GetVehicleHealth(veh, health);
    
    if(health< 999) SetVehicleHealth(veh, 1000);

 

Edited by DCosmin
Link to comment
Share on other sites

  • 0

Incearca sa te folosesti de [url=https://wiki.sa-mp.com/wiki/OnVehicleDamageStatusUpdate]OnVehicleDameStatusUpdate

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

Link to comment
Share on other sites

  • 0

Tot ce ai nevoie este de o structura de decizie (IF) si de : 

-http://wiki.sa-mp.com/wiki/GetVehicleHealth

-http://wiki.sa-mp.com/wiki/GetPlayerHealth

-http://wiki.sa-mp.com/wiki/SetPlayerHealth

-http://wiki.sa-mp.com/wiki/SetVehicleHealth

-http://wiki.sa-mp.com/wiki/RepairVehicle

Te rog incearca sa rezolvi si nu mai face dublu post.

Topic Closed

Edited by DCosmin
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.