Jump to content
  • 0

Vehicle Health


LuciaN

Question

Am si eu o problema am cautat pe forum dar nu am gaasit exact ce imi trebuia .Am facut si eu un mik dmv si nu stiu cum sa fac ca,cand cineva loveste masina sa pice testul adik chestia aia cu viata masini nu stiu cum sa o fac.Sau daca nu puteti sa ma ajutati cu asta vreau sa fac ca,cand un player depaseste o anumita viteza sa pice . Plz help

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

1 nu evita cacofonia cu virgula mai treci pe la ora de romana

2 folosestete de functia vehicle health nush sigur cum ii zice cauta pe wiki si fa-o atunci cand ii scade viata sa-l dea afara

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Link to comment
Share on other sites

Bine ca tu sti romana la perfectie  :P, eu am intrebat sa iti explic ca daca nu zici ca mai explica odata si etc.... Asi vrea sa te fi vazut pe tine cum erai la inceput cand ai inceput sa scriptezi !  ;)

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Link to comment
Share on other sites

Guest farse

pai cand incepe Dvm-u pui dvmon[playerid]=1; (dau daca ai ceva asemanator cand se aciveaza cand incepe dvm,si se dezactiveaza cand e gata Dvm),si cand termina dvm,dvmon[playerid]=0;

--

La onPlayerUpdate

if(dvmon[playerid]==1)
{
new Float:H,vid;
vid=GetPlayerVehicleID(playerid);
GetVehicleHealth(vid,H);
if(H<100)
{
dvmon[playerid]=0;
SendClientMessage(playerid,COLOR_RED,"Ai cazut testul..mai incerca peste 100 ani  ");
}
}

Sper ca ai priceput...

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.