ChangeVeh v0.1 (Change veh with pickup) -
[DOG]irinel1996 - 28.08.2011
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
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
SpiderWalk - 28.08.2011
COOL very usefull for Stunt Servers
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
HyperZ - 28.08.2011
Good job.
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
FireCat - 28.08.2011
Nice
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
[DOG]irinel1996 - 28.08.2011
Thanks all.
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
TheArcher - 28.08.2011
Nice idea.
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
steki. - 28.08.2011
Somebody had to do that at all. Great work.
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
wouter0100 - 28.08.2011
Maybe CreateChangeVeh(Model id, Pickup id, X, Y, Z, ); ?
and OnPlayerChangeVehcile(Old modelid, New modelid, vehcileid, playerid) as callback..
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
gamer931215 - 28.08.2011
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
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
[DOG]irinel1996 - 28.08.2011
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...
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
oFLu - 28.08.2011
Nice Thanks
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
davve95 - 28.08.2011
Nice good idea
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
Kaperstone - 28.08.2011
nice
will use..
put it in Pastebin.com please
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
Ronaldo_raul™ - 25.01.2012
Link Dead
Re: ChangeVeh v0.1 (Change veh with pickup like in MTA) -
serdar189 - 26.07.2012
link ?
Re: ChangeVeh v0.1 (Change veh with pickup) -
Bug. - 02.08.2012
Nice man like it!!!
Re: ChangeVeh v0.1 (Change veh with pickup) -
[WA]iRonan - 07.01.2013
[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?
Respuesta: Re: ChangeVeh v0.1 (Change veh with pickup) -
[DOG]irinel1996 - 08.01.2013
Quote:
Originally Posted by [WA]iRonan
[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!
Re: ChangeVeh v0.1 (Change veh with pickup) -
emit - 08.01.2013
Easy and simple. Thanks!