Jump to content
  • 0

SAMP


DavidTKD

Question

9 answers to this question

Recommended Posts

  • 0
Acum 8 ore, DavidTKD a spus:

Salut. Am un server de Sa-mp si as dori sa stiu cum se poate sa modifica health la masini de exemplu la (Rhino tank-ul sa ii setez alt hp fata de celalate vehicule).

aia trebuie modificat de scriptar priceput si trecut prin aia

Link to comment
Share on other sites

  • 0
Acum 9 ore, DavidTKD a spus:

Bun ce vreau sa te intreb eu practic daca modifica acolo se schimba la toate vehiculele dar daca vreau sa modific doar la Rhino (Tank)

 

trebuie sa faci o bucla si sa vezi daca masina cu id = x este tanc si atunci sa setezi viata. Sau tancurile sa le creezi folosinduce de o variabila new tancuri[cate_tancuri_vrei].

tancuri[0]= AddStaticVehicle(parametrii) si tot asa pana la nr_de_tancuri -1.

si dupa zpoti face o bucla cu for care este mai eficienta decat prima for(new i=0;i<nr_de_tancuri;i++) SetVehicleHealth(tancuri, viata);

Edited by valivaly96
Link to comment
Share on other sites

  • 0
Acum 10 ore, DavidTKD a spus:

Iau eror cum ca ar mai fii inca o functie

 

Update la server...

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.