Problem spawning car at right location
#4

Okay... from what you've explained to me, this is what your code should be:
pawn Код:
case 0: // Bobcat
{
    if(GetPlayerScore(playerid) < 0) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a special vehicle", "{FFED69}0 Score: Bobcat\n{FFE100}500 Score: Hotknife\n{FFC400}1000 Score: Enforcer\n{FFA200}1500 Score: Trashmaster\n{FF7700}1500 Score: Bus\n{FF3C00}2000 Score: NRG-500\n{E80000}2000 Score: Combine Harvester\n{E80074}3000 Score: Dumper\n{00FBFF}VIP: Vortex", "Purchase", "Cancel");
    DestroyVehicle(GetPlayerVehicleID(playerid)); //Will also destroy the car if they are a passenger.
    new carid = CreateVehicle(422, 2904.16187, -3198.61792, 107.49332, 0, -1, -1, 0);
    LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
    SendClientMessage(playerid, 0x20C92EFF, "You spawned a Bobcat.");
    PutPlayerInVehicle(playerid, carid, 0);
}
Reply


Messages In This Thread
Problem spawning car at right location - by CrazyManiac - 03.05.2015, 12:19
Re: Problem spawning car at right location - by CrazyManiac - 03.05.2015, 12:28
Re: Problem spawning car at right location - by CrazyManiac - 03.05.2015, 14:48
Re: Problem spawning car at right location - by Threshold - 03.05.2015, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)