Unlimited number of houses,vehicles,etc.
#2

Well making an "unlimited" number of something isn't technically possible in SA:MP, there's a trick to make "unlimited" vehicles and it goes something like this

OnPlayerConnect
PHP код:
//So here u check if player has a vehicle and spawn it, something like this?
if(PlayerInfo[pCar1] == Whatever)
{
CreateVehicle...

OnPlayerDisconnect
PHP код:
// So here u again check if player has a vehicle
if(PlayerInfo[pCar1] == Whatever)
{
DestroyVehicle...

EDIT: If u wanted players to have unlimited number of vehicles that's an another story ( Like they can purchase 500 cars or something like that )
Reply


Messages In This Thread
Unlimited number of houses,vehicles,etc. - by GospodinX - 07.08.2018, 09:54
Re: Unlimited number of houses,vehicles,etc. - by IdonTmiss - 07.08.2018, 10:14
Re: Unlimited number of houses,vehicles,etc. - by Kraeror - 07.08.2018, 10:16
Re: Unlimited number of houses,vehicles,etc. - by BornHuman - 07.08.2018, 10:21
Re: Unlimited number of houses,vehicles,etc. - by GospodinX - 07.08.2018, 10:25
Re: Unlimited number of houses,vehicles,etc. - by GospodinX - 08.08.2018, 09:36

Forum Jump:


Users browsing this thread: 1 Guest(s)