Get in player vehicle?
#1

Hi all,how to get in the player vehicle as passger by tiping a command?
Reply
#2

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
Reply
#3

mmm i need to create a command like /getinvehicle and add that code?
Reply
#4

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 ;]
Reply
#5

Thanks man!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)