How does it actually works?
#5

Quote:
Originally Posted by NiXeL
Посмотреть сообщение
I know how to create pickups.
I can't get other things.
For example, how to prevent player from buying house if he's already had one. And what if player's account has been removed, what about his house?
Lets say there is a house line in the player file (house = -1)
and if he bought a house, lets say houseid 5 (house = 5)
if we read it than and it isnt -1, he got a house

For easier usage just load the saved data into variables

Quote:
Originally Posted by Marricio
Посмотреть сообщение
Use vars, like..

pawn Код:
new HasHouse[MAX_PLAYERS];
new IsInHouse[MAX_PLAYERS];
etc..
If his account is removed the house is ownerless and can be bought again...

After all an house system isnt that complicated,
its more or less two pickups with one id (enter pickup / exit pickup / houseid)
Reply


Messages In This Thread
How does it actually works? - by NiXeL - 03.03.2011, 19:52
Re: How does it actually works? - by Mean - 03.03.2011, 19:56
Re: How does it actually works? - by NiXeL - 03.03.2011, 20:03
Re: How does it actually works? - by Marricio - 03.03.2011, 20:20
AW: Re: How does it actually works? - by Nero_3D - 03.03.2011, 21:50
Re: How does it actually works? - by Lorrden - 03.03.2011, 21:59
Re: How does it actually works? - by Cameltoe - 03.03.2011, 23:02
Re: AW: Re: How does it actually works? - by Marricio - 03.03.2011, 23:37
Re: AW: Re: How does it actually works? - by NiXeL - 04.03.2011, 18:35
AW: Re: AW: Re: How does it actually works? - by Nero_3D - 04.03.2011, 22:13

Forum Jump:


Users browsing this thread: 2 Guest(s)