[Include] [INC] Vehicle-Spawn-Creator - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] Vehicle-Spawn-Creator (
/showthread.php?tid=63439)
[INC] Vehicle-Spawn-Creator -
Remis93 - 28.01.2009
Vehicle-Spawn-Creator, VSC for short, is a very small include which creates a vehicle spawn for a bike, plane, bike or car. After ervery vehiclespawn the vehicleґs model and color change (but a car still be a car, a bike still be a bike...).
Why?
(This is not a command vehicle creator, like /veh [model] [color1] [color2]!)
Its for use in Stunt/Freeroam servers and its faster to create cars this way because of the smaller functions (you dont need to add the model, colors and respawn anymore). I thought it would be useful for beginners or lazy peoples.
Setup:
1.Under OnGameModeINIt or OnFilterScriptInit:
ADD "createcarspawn_OnGameModeInit();"
Ex:
Код:
public OnGameModeInit()
{
createcarspawn_OnGameModeInit();
return 1;
}
2.Under OnVehicleSpawn:
ADD "createcarspawn_OnVehicleSpawn(vehicleid);"
Ex:
Код:
public OnVehicleSpawn(vehicleid)
{
createcarspawn_OnVehicleSpawn(vehicleid);
return 1;
}
3.Add your vehicle spawns, AFTER "createcarspawn_OnGameModeInit();" in OnGameModeInit.
Available functions:
Код:
CreateCarSpawn(x,y,z,zangle);
CreatePlanSpawn(x,y,z,zangle);
CreateBikeSpawn(x,y,z,zangle);
CreateBoatSpawn(x,y,z,zangle);
CreateHeliSpawn(x,y,z,zangle);
Ex:
Код:
public OnGameModeInit()
{
createcarspawn_OnGameModeInit();
CreateCarSpawn(-2252.1470,2303.0017,4.8125,88.1217);
CreateCarSpawn(-2251.0171,2311.9460,4.8125,88.1217);
CreateCarSpawn(-2251.4263,2327.0388,4.8125,88.1217);
CreateHeliSpawn(-2270.3491,2310.8164,4.8202,165.2025);
//other cars
//you can still ad CreateVehicle ofc
CreateVehicle(...);
return 1;
}
Download:
http://pawn.pastebin.com/f2ca52f8d
This is my first released stuff here, so dont blame me for making crap...
You can edit it, upload it put it in your scripts without credits.
If its crap, feed your Windows with it.
Re: [INC] Vehicle-Spawn-Creator -
MetalKoobra - 05.02.2009
In my GM(gf) i dont have this:
Код:
createcarspawn_OnVehicleSpawn
Re: [INC] Vehicle-Spawn-Creator -
Remis93 - 05.02.2009
Quote:
Originally Posted by MetalKoobra
In my GM(gf) i dont have this:
Код:
createcarspawn_OnVehicleSpawn
|
You have to ADD it.