[FilterScript] PPC_Housing
#32

Quote:
Originally Posted by fredelfredel
View Post
HI , I have a good question, it is possible When a player quit from server his cars remain loaded ??
Yes, but it\'s not recommended for servers with a large player-base.


On top of the script, you\'ll find:
pawn Code:
// Setting this to "true" will load all vehicles assigned to houses when the filterscript loads
// Setting this to "false" will load the vehicles assigned to a house when the house-owner logs in (they\'ll also disappear when he logs out)
// Recommended setting for popular servers (with alot of players): "false"
// In popular servers, the amount of cars could go over the samp-limit (2000), bugging everything when all cars stay loaded
// even when the owner of the vehicle is offline
new bool:LoadCarsDuringFSInit = false;


The comments are a bit vague, but it means:

- Load all house-vehicles during initialization of the script (while the houses are being loaded) and spawn them

- Also keep them loaded when players logout




The comments explain what could happen if you use this feature.

Picture this:

- you have 500 players (accounts) on your server (which is not much)

- all players have 2 houses (which also isn\'t much, I have this set to 20 on my test-server)

- each house has 5 vehicles assigned to it (max per house would be 10 for a level 10 house, so also not that much)


Then the total amount of cars = 500 players * 2 houses * 5 vehicles = 5000 cars.

BUT the samp-limit is only 2000, and cannot be expanded.


So, players have bought 3000 cars too many, which never appear.

Guess what will happen to your player-base?

They will leave because they think your server is bugged (they bought a car but never got to drive it).



So, use that setting with extreme caution.

It\'s only recommended for local servers, or servers with only a few players (less than 100).


Or you can create static houses with a slot-count of 2 (fixed amount of carslots) and only allow one house per player.

Then it\'s easier to have more than 100 players.
Reply


Messages In This Thread
PPC_Housing - by PowerPC603 - 15.09.2011, 10:25
Re: PPC_Housing - by Speed - 15.09.2011, 11:03
Re: PPC_Housing - by [LHT]Bally - 15.09.2011, 11:12
Re: PPC_Housing - by [LHT]Bally - 15.09.2011, 11:14
Re: PPC_Housing - by Surferdude - 15.09.2011, 11:48
Re: PPC_Housing - by Xx_OutLawZ_xX - 15.09.2011, 11:51
Re: PPC_Housing - by wouter0100 - 15.09.2011, 11:55
Respuesta: PPC_Housing - by Manuel7284 - 15.09.2011, 12:16
Re: PPC_Housing - by [LHT]Bally - 15.09.2011, 14:20
Re: PPC_Housing - by PowerPC603 - 15.09.2011, 21:04
Re: PPC_Housing - by [LHT]Bally - 15.09.2011, 21:06
Re: PPC_Housing - by [GTA]AmericanGangster - 15.09.2011, 21:08
Re: PPC_Housing - by [GTA]AmericanGangster - 15.09.2011, 21:12
Re: PPC_Housing - by PowerPC603 - 15.09.2011, 21:44
Re: PPC_Housing - by Ehab1911 - 16.09.2011, 07:12
Re: PPC_Housing - by PowerPC603 - 16.09.2011, 10:27
Re : Re: PPC_Housing - by Naruto_Emilio - 16.09.2011, 22:52
Re: PPC_Housing - by PowerPC603 - 16.09.2011, 23:46
Re: PPC_Housing - by knackworst - 24.09.2011, 09:50
Re: PPC_Housing - by bryan1412 - 24.09.2011, 10:32
Re: PPC_Housing - by PowerPC603 - 24.09.2011, 11:49
Re: PPC_Housing - by Trucker[UK] - 24.09.2011, 14:30
Re: PPC_Housing - by [LHT]Bally - 24.09.2011, 20:05
Re: PPC_Housing - by PowerPC603 - 24.09.2011, 21:02
Re: PPC_Housing - by [LHT]Bally - 24.09.2011, 21:29
Re: PPC_Housing - by knackworst - 25.09.2011, 00:17
Re: PPC_Housing - by Epic_Mickey - 25.09.2011, 05:34
Re: PPC_Housing - by PowerPC603 - 25.09.2011, 12:41
Re: PPC_Housing - by PowerPC603 - 29.09.2011, 20:45
Re: PPC_Housing - by DiiP - 03.10.2011, 14:30
Re: PPC_Housing - by fredelfredel - 04.10.2011, 19:05
Re: PPC_Housing - by PowerPC603 - 04.10.2011, 19:28
Re: PPC_Housing - by BetaLaxx - 06.10.2011, 17:40
Re: PPC_Housing - by [LHT]Bally - 07.10.2011, 10:14
Re: PPC_Housing - by niels44 - 08.10.2011, 14:24
Re: PPC_Housing - by AgentBacon - 11.10.2011, 18:33
Re: PPC_Housing - by [03]Garsino - 11.10.2011, 19:32
Re: PPC_Housing - by PowerPC603 - 11.10.2011, 21:10
Re: PPC_Housing - by [03]Garsino - 11.10.2011, 22:06
Re: PPC_Housing - by K4P3L_KUM4R - 19.11.2011, 05:42
Re: PPC_Housing - by [LaTinb0y]...$ag3R - 19.11.2011, 06:40
Re: PPC_Housing - by GangsTa_ - 19.11.2011, 07:47
Re: PPC_Housing - by davedavy - 22.11.2011, 14:17
Respuesta: Re: Respuesta: PPC_Housing - by [Nikk] - 22.11.2011, 16:20
Re: PPC_Housing - by davedavy - 22.11.2011, 17:09
Re: PPC_Housing - by JanNovak - 25.11.2011, 10:53
Re: PPC_Housing - by -BadGirl- - 27.11.2011, 12:16
Re: PPC_Housing - by -fleia - 27.11.2011, 20:33
Re: PPC_Housing - by Nexotronix - 27.11.2011, 20:36
Re: PPC_Housing - by Astralis - 22.12.2011, 14:38
Re: PPC_Housing - by Ryan_Obeles - 24.02.2012, 05:14
Re: PPC_Housing - by willzyyy - 27.02.2012, 19:46
Re: PPC_Housing - by ninjahippie - 04.03.2012, 08:07
Re: PPC_Housing - by Vegas. - 04.03.2012, 08:54
Re: PPC_Housing - by willzyyy - 04.03.2012, 08:57
Re: PPC_Housing - by titanak - 04.03.2012, 23:12
Re: PPC_Housing - by [LHT]Bally - 04.03.2012, 23:14
Re: PPC_Housing - by GTAItsMe - 06.07.2012, 10:00
Re: PPC_Housing - by martin3644 - 14.12.2012, 18:08
Re: PPC_Housing - by Johny32 - 22.02.2013, 11:28
Re: PPC_Housing - by Skillzz - 21.11.2013, 23:43
Re: PPC_Housing - by Symphony - 29.01.2014, 00:22
Re: PPC_Housing - by Hybris - 01.02.2014, 15:55
Re: PPC_Housing - by ProKillerpa - 08.03.2014, 13:31
Re: PPC_Housing - by Bubulis - 19.05.2014, 12:06
Re: PPC_Housing - by HuntingMan - 25.05.2014, 03:47
Re: PPC_Housing - by iRaiDeN - 25.05.2014, 03:57
Re: PPC_Housing - by Frogger75 - 22.06.2014, 21:25
Re: PPC_Housing - by Wahaj - 24.06.2014, 10:09
Re: PPC_Housing - by benedek - 29.06.2014, 17:44
Re: PPC_Housing - by Smoky94 - 02.07.2014, 14:28
Re: PPC_Housing - by ROXYhunter - 05.08.2014, 12:56
Re: PPC_Housing - by suhan - 26.07.2015, 15:29
Re: PPC_Housing - by rajeevkrao - 29.07.2017, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)