Jump to content

Recommended Posts

Posted

Salut , stie cineva cum sa adaug masini la o factiune sau sa fac chestia cu /svf ? Sunt la inceput cu scripting ul nu le prea am

Posted (edited)

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
Posted
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 ! 

 

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.