Help with command
#6

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
Here is the command +REP if helped
Код:
		RespawnNearbyVehicles(playerid, radius);
If you don't provide that function you're not helping. Does that mean I can give you -REP (if it were still possible)?

@OP: you want to create a vehicle loop and then check the distance for each vehicle. I recommend using IsVehicleStreamedIn to only respawn those vehicles that are currently within the stream distance. I believe this will be the fastest; distance calculation is quite expensive.

PHP код:
for(new 1GetVehiclePoolSize(); <= ji++)
{
    if(
IsVehicleStreamedIn(iplayerid))
    {
        
SetVehicleToRespawn(i);
    }

Reply


Messages In This Thread
Help with command - by teodorchikov - 10.08.2016, 15:35
Re: Help with command - by Shinja - 10.08.2016, 15:47
Re: Help with command - by teodorchikov - 10.08.2016, 15:49
Re: Help with command - by Shinja - 10.08.2016, 15:52
Re: Help with command - by StrikerZ - 10.08.2016, 16:00
Re: Help with command - by Vince - 10.08.2016, 16:12
Re: Help with command - by teodorchikov - 11.08.2016, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)