[Include] CreateChangeVeh v0.3 (New functions!)
#1

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:
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;
}*/
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.
Reply
#2

nice
i like the idea...
Reply
#3

Big thanks for mp3 10mb inside archive.
Reply
#4

Quote:
Originally Posted by Geryy
Посмотреть сообщение
Big thanks for mp3 10mb inside archive.
Uyy, sorry.
Reuploading...
Reply
#5

Pastebin please

if you're using ryders work, you better ask him since you're linking the download to a site that pays you yet, his work is inside.
Reply
#6

this idea is in MTA xD great job!
Reply
#7

eline sağlık good
Reply
#8

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
Pastebin please

if you're using ryders work, you better ask him since you're linking the download to a site that pays you yet, his work is inside.
Added new mirror.
Yes, but inside the .rar, I have included GetVehicleColor, too.
Reply
#9

Very nice!

Probably i will use it
Reply
#10

Quote:
Originally Posted by irinel1996
Посмотреть сообщение
Added new mirror.
Yes, but inside the .rar, I have included GetVehicleColor, too.
How is that a good thing? File serve is a way to get money from downloads I assume. Ryders work is contained within the download meaning your gaining profit from his work. Ask him for permission or upload to solidfiles... All download links with file serve shouldn't contain other peoples work.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)