Uh - GetVehicleInterior?
#1

So, here's my script.

pawn Код:
dcmd_gotov(playerid, params[])
{
    new id;
    if(PlayerInfo[playerid][AdminLevel] < 2) return SendClientMessage(playerid, COLOR_GREY, "» You are not authorized to use this command.");
    if(sscanf(params,"d",id)) return SendClientMessage(playerid, COLOR_GREY, "» USAGE: /gotov (Vehicle ID)");
    if(id == INVALID_VEHICLE_ID) return SendClientMessage(playerid, COLOR_GREY, "» Invalid Vehicle ID.");
    new Float:x, Float:y, Float:z;
    GetVehiclePos(id, x, y, z);
    new virt;
    virt = GetVehicleVirtualWorld(id);
    SetPlayerVirtualWorld(playerid, virt);
    SetPlayerInterior(playerid, ...); // This line guys!
    SetPlayerPos(playerid, x, y, z+2.5);
    return 1;
}
How am I supposed to get a vehicles interior so I can do this?

Sounds like basic knowledge, but still I have no idea.

I could of course make a variable for every vehicle to store the interior in, but that sounds a bit like overkill?
Reply
#2

Mh.. there isn't a 'GetVehicleInterior'.. so when you use 'LinkVehicleToInterior' you will have to make an array containing the vehicleid interior..
Reply
#3

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
Mh.. there isn't a 'GetVehicleInterior'.. so when you use 'LinkVehicleToInterior' you will have to make an array containing the vehicleid interior..
That's what I thought, and I was just asking if this was the only option.

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)