PDA

View Full Version : moving [ help ] +rep


RicaNiel
08/04/2012, 02:07 PM
Guys how to make player teleport to my vehicle seat as a passenger
using my command

/pu [ palyerid ] [ seat id]

and i am using ZCMD

how to make that command
or what will i use
i cant do with

MovePlayerToMyVehicleSeat(playerid,targetid,seatid )

lol

anyways i am giving +rep

Laronic
08/04/2012, 02:09 PM
Use

PutPlayerInVehicle(targetid, vehicleid, seatid); //PutPlayerInVehicle(targetid, GetPlayerVehicleID(playerid), seatid);

emokidx
08/04/2012, 02:11 PM
http://wiki.sa-mp.com/wiki/PutPlayerInVehicle


params : (playerid,vehicleid,seatid)
Seats:
0 - Driver
1 - Front Passenger
2 - Back left passenger
3 - Back right passenger
4+ - Passenger seats (coach etc.)

RicaNiel
08/04/2012, 02:11 PM
oh thanks
but can you explain how to use that?
i am confused with vehicle id

SpiritEvil
08/04/2012, 02:20 PM
I hope this will help:

CMD:pu(playerid, params[])
{
new targetid, seatid;
if(sscanf(params, "ui", targetid, seatid)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /pu [Player ID] [Seat ID]");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You must be in a vehicle to use this command");
PutPlayerInVehicle(targetid, GetPlayerVehicleID(playerid), seatid);
return 1;
}