moving [ help ] +rep - 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)
+--- Thread: moving [ help ] +rep (
/showthread.php?tid=332530)
moving [ help ] +rep -
RicaNiel - 08.04.2012
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
Re: moving [ help ] +rep -
Laronic - 08.04.2012
Use
pawn Код:
PutPlayerInVehicle(targetid, vehicleid, seatid); //PutPlayerInVehicle(targetid, GetPlayerVehicleID(playerid), seatid);
Re: moving [ help ] +rep -
emokidx - 08.04.2012
https://sampwiki.blast.hk/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.)
Re: moving [ help ] +rep -
RicaNiel - 08.04.2012
oh thanks
but can you explain how to use that?
i am confused with vehicle id
Re: moving [ help ] +rep -
SpiritEvil - 08.04.2012
I hope this will help:
pawn Код:
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;
}