03.05.2015, 16:04
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);
}