Jump to content

Cum se adauga masini la factiuni


Tefyuu

Recommended Posts

https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks

https://sampwiki.blast.hk/wiki/CreateVehicle

Ai tot ce ti trebuie:

 new car_fbi[2]; // 2 masini pentru fbi

ongamemodeinit

{

	for(new i = 0; i < sizeof(car_fbi); i++)
                                       {
                                      		car_fbi[i] = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60); // model car, coordonate x, y z, culoare 1, culoare 2, timp de respawn
                                       }

}
                                       
                                       cmd:respawncarfbi(playerid, params[]) // pe baza procesorului de comenzi pawn.cmd
                                       {
                                       		for(new i = 0; i < sizeof(car_fbi); i++)
{
	SetVehicleToRespawn(car_fbi[i]); // respawn car id fbi
}
SendClientMessage(playerid, -1, "Vehiculele au fost respawnate!");
return 1;
                                       }

 

Edited by iSkull
Link to comment
Share on other sites

1 hour ago, iSkull said:

https://sampwiki.blast.hk/wiki/Category:Scripting_Callbacks

https://sampwiki.blast.hk/wiki/CreateVehicle

Ai tot ce ti trebuieex:

 new car_fbi[2]; // 2 masini pentru fbi

ongamemodeinit

{

	for(new i = 0; i < sizeof(car_fbi); i++)
                                       {
                                      		car_fbi[i] = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, -1, -1, 60); // model car, coordonate x, y z, culoare 1, culoare 2, timp de respawn
                                       }

}
                                       
                                       cmd:respawncarfbi(playerid, params[]) // pe baza procesorului de comenzi pawn.cmd
                                       {
                                       		for(new i = 0; i < sizeof(car_fbi); i++)
{
	SetVehicleToRespawn(car_fbi[i]); // respawn car id fbi
}
SendClientMessage(playerid, -1, "Vehiculele au fost respawnate!");
return 1;
                                       }

 

mersi ! 

 

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
Reply to this topic...

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

  • Similar Content

    • By TheGodfather
      Salut, masinile se respawneaza la un interval de timp daca cineva nu e in ele. Am pus peste tot unde e SetVehicleToRespawn() un mesaj unic, ca sa imi dau seama unde e problema. Dar cand masina se respawneaza nu apare niciun mesaj, tin sa mentionez ca mesajul e pus cu SendClientMessageToAll. Deci nu exista sansa sa se fi trimis si sa nu il fi vazut. Am gamemode hpq123 bhood.
    • By CenzoR
      Salut! Am problema cand intru in masina persoanala nu imi arata detalile acesteia, de ex cate zile are, km, culorile.
      Scriptul este deja pus in gamemode (nu este anulat)
      Ma poate ajuta cineva?
    • By salexm93
      Salut ,pot adauga cod la apelarea functiilor native ? De ex la CreatePickup am nevoie sa salvez date pe care sa le accesez la OnPlayerPickUpPickup(playerid, pickupid)
    • By Tefyuu
      Salut , in gamemode ul burned by waller , cum adaug pet in shop ? am incercat eu ceva dar nu a aparut si am zis sa va intreb
    • By Lwka
      Hey! Am si eu nevoie de ajutor la comanda /bonus


      Cum pot acorda un vehicul temporar?
  • Recently Browsing   0 members

    No registered users viewing this page.

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