SA-MP Forums Archive
Uh - GetVehicleInterior? - 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: Uh - GetVehicleInterior? (/showthread.php?tid=184246)



Uh - GetVehicleInterior? - CrucixTM - 18.10.2010

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?


Respuesta: Uh - GetVehicleInterior? - The_Moddler - 18.10.2010

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


Re: Respuesta: Uh - GetVehicleInterior? - CrucixTM - 18.10.2010

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.