SA-MP Forums Archive
Creating Houses & Business - 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: Creating Houses & Business (/showthread.php?tid=102857)



Creating Houses & Business - Ritchie999 - 17.10.2009

Can anyone show me a preview of the script snippets to add houses and businesses with levels, rent/racketeering options an a price. adding green house icon on map


Re: Creating Houses & Business - Sergei - 17.10.2009

The easiest way is to create an enum like:
pawn Code:
#define MAX_HOUSES somenumber

enum hInfo
{
  ID,
  Price,
  Float:X,
  //etc
}
new HouseInfo[MAX_HOUSES][hInfo];
You should have all that info saved somewhere (file, SQL, etc) if you want to have them more "dynamic". For those green icons use pickups.
You should take a look at GF, Carlito's, etc where you can get general idea of how to start, but then how cool you make it is a thing of your imagination