Get in player vehicle? - 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: Get in player vehicle? (
/showthread.php?tid=177859)
Get in player vehicle? -
Face9000 - 19.09.2010
Hi all,how to get in the player vehicle as passger by tiping a command?
Re: Get in player vehicle? -
playbox12 - 19.09.2010
pawn Код:
command(putinvehicle, playerid, params[])
{
new id, vehid, seatid;
if( sscanf( params, "udd", id, vehid, seatid) )
{
if(IsPlayerAdmin(playerid)
{
SendClientMessage( playerid, COLOR_WHITE, "SERVER: /putinvehicle [id] [VehicleID] [SeatID]" );
}
}
else
{
if(IsPlayerAdmin(playerid
{
PutPlayerInVehicle(id, vehid, seatid)
}
}
return 1;
}
(Make sure you are logged in as rcon admin, and you need sscanf and zcmd)
Use that to put a player as a passenger, '0' = driver '1' = co-rider's seat '2' = left back seat '3' = right back seat '4+' is other availible seats, bus or coach stuff like that. I think I forgot something, but let me know if it worked
Re: Get in player vehicle? -
Face9000 - 19.09.2010
mmm i need to create a command like /getinvehicle and add that code?
Re: Get in player vehicle? -
playbox12 - 19.09.2010
Quote:
Originally Posted by Logitech90
mmm i need to create a command like /getinvehicle and add that code?
|
I edited my post with the right code, incase you didn't noticed it ;]
Re: Get in player vehicle? -
Face9000 - 19.09.2010
Thanks man!