Posts: 1,495
Threads: 131
Joined: Jul 2009
Reputation:
0
check for "LinkVehicleToInterior" in your gamemode and all filterscripts..
they seem to be linked to an interior (as you already figured out by setting them back to 0)
Posts: 46
Threads: 7
Joined: Aug 2010
Reputation:
0
Thanks for an very fast reply!
Uhm, I only have that text in teleports like these:
Is it these ones you talk about? :S
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1749.5895,-2548.6216,13.5469);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
LinkVehicleToInterior(tmpcar, 0);
SetPlayerVirtualWorld(playerid, 0);
OnPlayerExitFood(playerid);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Teleported Himself to Airport dealership",d,m,y,h,mi,s,sendername);
TelesLog(string);
}
EDIT:
I've checked all my filterscripts now. But there is nothing called "LinkVehicleToInterior" there. Only inside my gamemode, but that is just these teleports as I gave an example of.
Is it possible to set an interior inside the car script?
This is an example of my car script, whitch is one of the one who dissapears:
AddStaticVehicleEx(402,1215.87316895,-1673.98645020,11.73687458,0.00000000,-1,-1,30000); //Buffalo
Posts: 925
Threads: 36
Joined: Dec 2009
Reputation:
0
You can also use that within a loop. To link the vehicle to the interior 0
Posts: 273
Threads: 4
Joined: Nov 2007
Reputation:
0
Might be better to link your vehicles to whatever interior (0=Default) with OnVehicleSpawn to ensure they stay spawning in the correct Interior. But of course it's far better to figure out what in your script is causing vehicles being set to other interiors instead which is done by searching for that function suggested earlier...
In this case, starting with what 'GetPlayerState == 2' is exactly used for etc.