05.08.2014, 11:57
Quote:
I found the problem that caused the objects and vehicles to not stream.
Beta 5: * Delete LinkTimeOptimization Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5 |
Код:
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.