04.07.2013, 11:02
pawn Код:
.
.
new Float:XZ, Float:YZ, Float:ZZ;
GetPlayerPos(playerid, XZ, YZ, ZZ);
veh = CreateVehicle(carid, XZ+4, YZ, ZZ, 10, carcolor1, carcolor2, 0);
SetVehicleVirtualWorld( veh , GetPlayerVirtualWorld(playerid)); // this does NOT return vehicle id.
LinkVehicleToInterior(veh, GetPlayerInterior(playerid)); // I added this to be be on the safe side.
SendClientMessage(playerid, 0xD8D8D8FF, "Vehicle Spawned");
acarInfo[veh][Created]=1;
.
.

