How to set max car
#1

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

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

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

no effect
Reply
#5

*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
Reply
#6

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
Reply
#7

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
Reply
#8

i try it,

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

no effect help me
Reply
#9

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

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

There is no way to add car ? T - T
Reply
#11

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.
Reply
#12

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
Reply
#13

What's the reason for 2000 cars?
Reply
#14

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)