SA-MP Forums Archive
How to set max car - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to set max car (/showthread.php?tid=230723)



How to set max car - gunnrcrakr - 24.02.2011

My server have car 2000, I want to up max How to ?


Re: How to set max car - (SF)Noobanatior - 24.02.2011

pawn Код:
stock SetAllVehiclesHealth(amount){
for(new v=0;v<MAX_VEHICLES;v++){
SetVehicleHealth(v,Amount);
}
}



Re: How to set max car - jejemonerz123 - 24.02.2011

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
pawn Код:
stock SetAllVehiclesHealth(amount){
for(new v=0;v<MAX_VEHICLES;v++){
SetVehicleHealth(v,Amount);
}
}
thanks


Re: How to set max car - gunnrcrakr - 24.02.2011

no effect


Re: How to set max car - (SF)Noobanatior - 24.02.2011

*edit use this one
then after you created all the cars go
pawn Код:
stock SetAllVehiclesHealth(amount){
for(new v=0;v<MAX_VEHICLES;v++){
SetVehicleHealth(v,amount);
}
}
im not sure but 1000 might even be max


Re: How to set max car - gunnrcrakr - 24.02.2011

Quote:
Originally Posted by (SF)Noobanatior
Посмотреть сообщение
*edit use this one
then after you created all the cars go
pawn Код:
stock SetAllVehiclesHealth(amount){
for(new v=0;v<MAX_VEHICLES;v++){
SetVehicleHealth(v,amount);
}
}
im not sure but 1000 might even be max
sorry how to edit that


Re: How to set max car - (SF)Noobanatior - 24.02.2011

i edited use the second ver just put at the bottom of ya script and go

stock SetAllVehiclesHealth(amount);
after you creat all the cars
where amount is the number you want to set it to


Re: How to set max car - gunnrcrakr - 24.02.2011

i try it,

stock SetAllVehiclesHealth(amount){
for(new v=0;v<MAX_VEHICLES;v++){
SetVehicleHealth(v,3000);
}
}

no effect help me


Re: How to set max car - DevilG - 24.02.2011

2000 is the limit of the cars spawned on the server.

Refer to this:
https://sampwiki.blast.hk/wiki/Limits


Re: How to set max car - gunnrcrakr - 24.02.2011

There is no way to add car ? T - T


Re: How to set max car - watkijkje - 24.02.2011

Quote:
Originally Posted by gunnrcrakr
Посмотреть сообщение
There is no way to add car ? T - T
The only way is using a Vehicle Streamer.
Use the search button to find one in the FS section.
Vehicle Streamers are not recommended for server with many players.


Re: How to set max car - gunnrcrakr - 24.02.2011

Quote:
Originally Posted by watkijkje
Посмотреть сообщение
The only way is using a Vehicle Streamer.
Use the search button to find one in the FS section.
Vehicle Streamers are not recommended for server with many players.
oh.. Thank you very much so much too much I can do it


Re: How to set max car - Mike Garber - 24.02.2011

What's the reason for 2000 cars?


Re: How to set max car - maramizo - 24.02.2011

pawn Код:
//At the top of your code.
#define MAX_VEHICLES 2000



Re: How to set max car - Mean - 24.02.2011

Quote:
Originally Posted by maramizo
Посмотреть сообщение
pawn Код:
//At the top of your code.
#define MAX_VEHICLES 2000
That will just change the definition, it will not change the maximum limit. You need to use a streamer, also he isn't asking how to put vehicle health, he is asking how to add more vehicles. So yea, use a veh streamer.