Pickup
#1

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);
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)