22.01.2017, 16:16
(
Последний раз редактировалось MRM; 27.05.2017 в 11:38.
)
I make ownvehicle.
i use CreateVehicle. But not work correctly.
In cmd i use CreateXVehicle2(ID , car);
My code:
2. playerid:13 ----- SpawnedVehicle:480 -----
2. playerid:10 ----- SpawnedVehicle:480 -----
i use CreateVehicle. But not work correctly.
In cmd i use CreateXVehicle2(ID , car);
My code:
PHP код:
CreateVehicle2(playerid, modelid)
{
new Float:x,Float:y,Float:z,Float:angulo;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angulo);
if(SpawnedVehicle[playerid] != INVALID_VEHICLE_ID) DestroyVehicle(SpawnedVehicle[playerid]);
SpawnedVehicle[playerid] = CreateVehicle(modelid,x+0.5,y+3,z,angulo,-1,-1,9000);
printf("2. playerid:%d ----- SpawnedVehicle:%d -----",playerid,SpawnedVehicle[playerid]);
return 1;
}
2. playerid:10 ----- SpawnedVehicle:480 -----