[Include] ChangeVeh v0.1 (Change veh with pickup)
#1

Hi people. :P
Here is my first include. :O
Well, with that you can change the vehicle like in MTA, with pickups or any other script.

-Info:
ChangeVeh(playerid, NewVehID); <- NewVehID, you must put the ID of the new vehicle model.

-Example:
pawn Код:
#define FILTERSCRIPT
//By irinel1996.
#include <a_samp>
#include <CVeh>

new TestSFA;

public OnFilterScriptInit()
{
    TestSFA = CreatePickup(1559,14,-1278.8013,8.0886,14.1484);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == TestSFA)
    {
        ChangeVeh(playerid, 522); //It'll create a NRG-500.
        return 1;
    }
    return 1;
}
-Video:
[ame]http://www.youtube.com/watch?v=iLofTgdU7qE[/ame]

-Download:
http://www.megaupload.com/?d=5TNCBD80

-Credits:
-Me, irinel1996.
-sergio_team

That's all.
Remember, that's v0.1

Greetings for Spain.

Atte. irinel1996
Reply
#2

COOL very usefull for Stunt Servers
Reply
#3

Good job.
Reply
#4

Nice
Reply
#5

Thanks all.
Reply
#6

Nice idea.
Reply
#7

Somebody had to do that at all. Great work.
Reply
#8

Maybe CreateChangeVeh(Model id, Pickup id, X, Y, Z, ); ?

and OnPlayerChangeVehcile(Old modelid, New modelid, vehcileid, playerid) as callback..
Reply
#9

Quote:
Originally Posted by wouter0100
Посмотреть сообщение
Maybe CreateChangeVeh(Model id, Pickup id, X, Y, Z, ); ?

and OnPlayerChangeVehicle(Old modelid, New modelid, vehcileid, playerid) as callback..
This.

--------
Also use pastebin next time www.pastebin.com

and add this to avoid conflicts with multiple scripts using your include:

pawn Код:
//add this on top right after #include <a_samp>
#IF DEFINED INCLUDED_CHANGEVEH
#endinput
#endif
#define INCLUDED_CHANGEVEH
For the rest... nice idea/script
Reply
#10

Quote:
Originally Posted by wouter0100
Посмотреть сообщение
Maybe CreateChangeVeh(Model id, Pickup id, X, Y, Z, ); ?

and OnPlayerChangeVehcile(Old modelid, New modelid, vehcileid, playerid) as callback..
Maybe in the next version.
_______________
Thanks all! Hehe...
Reply
#11

Nice Thanks
Reply
#12

Nice good idea
Reply
#13

nice
will use..
put it in Pastebin.com please
Reply
#14

Link Dead
Reply
#15

link ?
Reply
#16

Nice man like it!!!
Reply
#17

[RELEASE TOPIC, BUMPING = ALLOWED]

A question. If a person walks in the spot and grabs it. The spot will appear again?

second question: Can a person even walk in it?
Reply
#18

Quote:
Originally Posted by [WA]iRonan
View Post
[RELEASE TOPIC, BUMPING = ALLOWED]

A question. If a person walks in the spot and grabs it. The spot will appear again?

second question: Can a person even walk in it?
In this version depends on your pickup type, check v0.3.

PD: Take a look at v0.3, in my opinion is more "customizable".

Quote:
Originally Posted by [DOG]irinel1996
You can't use them if you're not in a vehicle. Anyway, they won't disappear, even if you go through the spot with a vehicle. (v0.3)
Thanks for your comment!
Reply
#19

Easy and simple. Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)