Car despawning problem.
#2

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;
.
.
btw. you are using apostrophes wrong. "...despawn vehicles but sometimes it despawns an other player's admin..."
Reply


Messages In This Thread
Car despawning problem. - by jueix - 04.07.2013, 09:16
Re: Car despawning problem. - by Antonio144 - 04.07.2013, 11:02
Re: Car despawning problem. - by Pilip93 - 07.07.2013, 21:40

Forum Jump:


Users browsing this thread: 1 Guest(s)