11.01.2015, 17:06
Just look at streamer function
Example code ( It's will create a CP size 2.0 at house exterior pos when player get closed ( distance 10.0 ) )
So if player far away than 10.0, CP will auto hide for player
pawn Код:
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
pawn Код:
HouseInfo[houseid][hPickupID] = CreateDynamicCP(HouseInfo[houseid][hExterior][0], HouseInfo[houseid][hExterior][1], HouseInfo[houseid][hExterior][2], 2.0, .worldid = HouseInfo[houseid][hExtVW], .interiorid = HouseInfo[houseid][hExtIW], .streamdistance = 10.0);