10.07.2014, 16:06
Also, by adding '1' to the player's virtual world, the player won't see the vehicle anyway because they will be in a different virtual world to the vehicle itself.
I'm not sure what the use of this code is for, but I'm going to have to make assumptions here.
I'm also not sure whether the vehicle is meant to be created at "2256.7861, -1263.1980, 23.4870" or at the player's position. I'm sure that's something that you're capable of working out for yourself though.
Helpful Functions:
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/CreateVehicle
I'm not sure what the use of this code is for, but I'm going to have to make assumptions here.
pawn Код:
tutbike = CreateVehicle(481, 2256.7861, -1263.1980, 23.4870, 273.2590, 3, 3, -1);
SetVehicleVirtualWorld(tutbike, GetPlayerVirtualWorld(playerid));
GetVehicleParamsEx(tutbike, iEngine, iLights, iAlarm, iDoors, iBonnet, iBoot, iObjective);
SetVehicleParamsEx(tutbike, iEngine, iLights, iAlarm, 1, iBonnet, iBoot, iObjective);
Helpful Functions:
https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/CreateVehicle