05.08.2014, 12:55
(
Последний раз редактировалось Swimor; 05.08.2014 в 17:49.
)
Quote:
Код:
CMD:veh(playerid,params[]) { new Float:POS[3]; //CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0); GetPlayerPos(playerid,POS[0],POS[1],POS[2]); new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,0,0,6000,300.0); if(!IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"->ERROR");//"-> successful!"); SetDynamicVehicleVirtualWorld(asd, 0); SetDynamicVehicleInterior(asd, 0); PutPlayerInDynamicVehicle(playerid, asd, 0); return 1; } Puts his car. But do not put the player in your car. Ejected from the vehicle after a certain distance. |
Edit:
Vehicles can disappear when you moving from one cell to another, the only way to fix this is to use global cell that will contain the vehicles.
It will be fixed soon.