how to find how many cars are on the server? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to find how many cars are on the server? (
/showthread.php?tid=492037)
how to find how many cars are on the server? -
Urukhay - 02.02.2014
how to find how many cars are on the server?
Re: how to find how many cars are on the server? -
Ryan McDuff - 02.02.2014
It all depends on what type of script you're using.
Re: how to find how many cars are on the server? -
CuervO - 02.02.2014
Код:
new amount;
for(new i = 0; i < MAX_VEHICLES; i ++)
if(GetVehicleModel(i) != 0)
amount ++;
amount will then be the amount of vehicles that are in the server.