11.12.2011, 13:25
Well, it doesn't separate objects and vehicles at all, because I made it only for objects, so you have to modify it a little bit to get it working.
Also, you have to create the vehicle before you can put the player in it.
I don't know if this works, but I am here to help fix it if it doesn't:
Currently it's fucked up, because it will create all the vehicles in the .map and put the same player in each one.
Also, you have to create the vehicle before you can put the player in it.
I don't know if this works, but I am here to help fix it if it doesn't:
pawn Код:
while(fread(file, string, sizeof(string)))
{
if(sscanf(string, "p<\">'vehicle id='s'posX='f'posY='f'posZ='f'rotX='f'rotY='f'rotZ='f'model='d", string, x, y, z, rx, ry, rz, model))
{
continue;
}
vehicleid = CreateVehicle(model, x, y, z, rz, 1, 1, 60);
PutPlayerInVehicle(playerid, vehicleid, 0);
}