30.01.2016, 17:11
GetPlayerPoolSize, tambйm acho interessante adicionar que tambйm existe para os veнculos GetVehiclePoolSize.
Код:
FreezeAll() { for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) // note that we assign the return value to a new variable (j) to avoid calling the function with each iteration { TogglePlayerControllable(i, 0); } }
Код:
RepairAllVehicles() { for(new i = 1, j = GetVehiclePoolSize(); i <= j; i++) // vehicleids start at 1 { RepairVehicle(i); } }