Pickup - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pickup (
/showthread.php?tid=168797)
Pickup -
pryor94 - 17.08.2010
I'v got this pickup how do i make it so when u walk throw it you spawn a car and in the car as driver?
CreatePickup(1239,370,-2602.4351,1401.6576,7.1865);
Re: Pickup -
Dime - 17.08.2010
on start of script
Quote:
new carpickup;
new carpickupSP;
|
ongamemodeinit
Quote:
carpickup = AddStaticPickup(1239, 23, x, y, z, 0);//put your cords here (x,y,z),virtual world is 0
|
onplayerpickuppickup
Quote:
{
if(pickupid == carpickup) carpickupSP = CreateVehicle(411, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);//this 411 is id of infernus you can change this in other car id
PutPlayerInVehicle(playerid,carpickupSP,0);
return 1;
}
|
not tested but i think will work