23.12.2011, 22:57
(
Последний раз редактировалось [DOG]irinel1996; 27.06.2015 в 00:03.
)
Hi people. :P
Here is the third version of my include.
Well, with that you can change the vehicle like in MTA, with pickups. Repair your vehicle, and get Nitro, just with one line.
-Info:
CreateChangeVeh(PickupModel, NewCarID, X, Y, Z,"Text");
-PickupModel: the pickup model, for example 1317.
-NewCarID: the new vehicle model ID.
-X,Y,Z: coordenates.
-"Text": you can put for example the name of the new vehicle.
CreateNitroPickup(X, Y, Z,"Text");
-X,Y,Z: coordenates.
-"Text": you can put here, for example "Nitro".
CreateRepairPickup(PickupModel, X, Y, Z,"Text");
-PickupModel: the pickup model, for example 1248.
-X,Y,Z: coordenates.
-"Text": some text, for example "Repair".
NOTE: The max pickups are MAX_PLAYERS*3, you can change this value opening the include and adjusting MAX_PCambio.
-Example:
NOTE: To make this include work properly, please, add #include <GetVehicleColor> to your scripts.
-Screenshot/Video:
[ame]http://www.youtube.com/watch?v=tCA-8zNn95Q[/ame]
-Download:
Download from Pastebin.
Download GetVehicleColor by RyDeR` (required).
-Credits:
-Me.
-RyDeR` for GetVehicleColor.
That's all folks.
Here is the third version of my include.
Well, with that you can change the vehicle like in MTA, with pickups. Repair your vehicle, and get Nitro, just with one line.
-Info:
CreateChangeVeh(PickupModel, NewCarID, X, Y, Z,"Text");
-PickupModel: the pickup model, for example 1317.
-NewCarID: the new vehicle model ID.
-X,Y,Z: coordenates.
-"Text": you can put for example the name of the new vehicle.
CreateNitroPickup(X, Y, Z,"Text");
-X,Y,Z: coordenates.
-"Text": you can put here, for example "Nitro".
CreateRepairPickup(PickupModel, X, Y, Z,"Text");
-PickupModel: the pickup model, for example 1248.
-X,Y,Z: coordenates.
-"Text": some text, for example "Repair".
NOTE: The max pickups are MAX_PLAYERS*3, you can change this value opening the include and adjusting MAX_PCambio.
-Example:
pawn Код:
#include <a_samp>
#include <CVeh>
public OnFilterScriptInit()
{
start_sveh(); // <- VERY IMPORTANT!
CreateRepairPickup(1248, -1332.5400,15.0657,14.1484, "Repair");
CreateChangeVeh(1317, 411, -1304.8049, -12.0391, 14.1484, "Infernus");
CreateNitroPickup(-1321.2589,3.0220,14.1484,"Nitro");
return 1;
}
/*public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
return 1;
}*/
-Screenshot/Video:
[ame]http://www.youtube.com/watch?v=tCA-8zNn95Q[/ame]
-Download:
Download from Pastebin.
Download GetVehicleColor by RyDeR` (required).
-Credits:
-Me.
-RyDeR` for GetVehicleColor.
That's all folks.