09.03.2015, 15:06
Hey,
I was adding team vehicles to my server, and then I thought of something.
Instead of having
Would I be able to loop through the swat vehicles? Like this,
Thanks
I was adding team vehicles to my server, and then I thought of something.
Instead of having
pawn Код:
new SwatCars[2]; // Top
SwatCars[0] = CreateVehicle(..
SwatCars[1] = CreateVehicle(.. // OnGameModeInit
if(vehicleid == SwatCars[0] || vehicleid == SwatCars[1]) // OnPlayerEnterVehicle
pawn Код:
#define MAX_SWAT 2
new SwatCars[MAX_SWAT];
SwatCars[0] = CreateVehicle(..
SwatCars[1] = CreateVehicle(..
for(new i = 0; i < MAX_SWAT; c++) {
if(vehicleid == SwatCars[i])}