How do I make a player teleport into random cars?
#1

I have a /kartdm command which teleports a player on top of the four dragons casino and I want the players to teleport into the car right away when they do /kartdm, so they can proceed with driveby dming.

I have the coordinates but I just don't know how to set it up.
Reply
#2

Well a combination of this:

Код:
CreateVehicle(carid, X,Y,Z,A, color1, color2, respawn delay);
and

Код:
PutPlayerInVehicle(playerid,vehicleid,seatid);
To make the person go into a go cart do this:

First this:

Код:
CreateVehicle(571, X,Y,Z,A, 0, 0, -1)
-Creates the gokart

Then this:

Код:
PutPlayerInVehicle(playerid,571,0);
-Puts the player into the drivers seat of the gokart

Of coarse you add these to your command
Reply
#3

Yes, but I need it to teleport to random karts when I type the command.
Reply
#4

You can create some karts with AddStaticVehicleEx() then use the SetPlayerPos() to teleport the players to the karts... And so on.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)