[FilterScript] [FS] v1.6e || Simple House System || 1 line = 1 house
#24

..r u trying to compile it?
..zomg


Quote:
Originally Posted by guide
I liked (better to say loved) this include ,so i decided to make guide for newbies:

1)Download this include.

2)Put/copy it in your serverfolder/pawno/includes folder.

3)Go to your gamemode.

4)At the bottom add: "#include <aHouse>" .

5)At "OnGameModeInit()" add:
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior)

where:
houseid - id of your house (starts from "0" )
Float:iconX - x coordinate of OUTSIDE
Float:iconY, - y coordinates of OUTSIDE
Float:iconZ, - z coordinates of outside
Float:interiorX, - x coordinates of INSIDE
Float:interiorY, - y coordinates of inside
Float:interiorZ - z coordinates of inside
Cost - house buying price
Sell - selling price
Interior - interior of house inside
You can find interior ID\'s here:

http://wikitmp.sa-mp.com/index.php/InteriorIDs

6)under OnPlayerPickupPickup(playerid,pickupid) add:

GetHouseStats(playerid, pickupid);

7)under OnPlayerCommandText() add:

dcmd(buy,3, cmdtext);
dcmd(sell,4, cmdtext);
dcmd(enter,5, cmdtext);
dcmd(exit,4, cmdtext);

A the bottom of the Gamemode add:
#define dcmd(%1,%2,%3) if ((strcmp(%3, "/%1", true, %2+1) == 0)&&(((%3[%2+1]==0)&&(dcmd_%1(playerid,"")))||((%3[%2+1]==32)&&(dcmd_%1(playerid,%3[%2+2]))))) return 1

9)Commands that will work:

/buy
/sell
/enter
/exit


10) add AddHouse(stuff here) before
CreatePickup
and AddStaticPickup

11) Open your aHouse include file and at first lines you will see:

//----------------------------
//----------------------------
#define HOUSES [xXx]
//----------------------------
//----------------------------

Change xXx to your house count !

12) Woualla ! your 1st house is done ,no go testing and have fun!
Reply


Messages In This Thread
[FS] v1.6e || Simple House System || 1 line = 1 house - by Antironix - 20.01.2008, 17:05
Re: Simple House System. 1 line is 1 house. - by weedarr - 20.01.2008, 17:08
Re: Simple House System. 1 line is 1 house. - by Antironix - 20.01.2008, 17:11
Re: Simple House System. 1 line is 1 house. - by weedarr - 20.01.2008, 17:12
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 17:21
Re: Simple House System. 1 line is 1 house. - by cmg4life - 20.01.2008, 17:28
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 17:31
Re: Simple House System. 1 line is 1 house. - by ple7y - 20.01.2008, 17:40
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 17:42
Re: Simple House System. 1 line is 1 house. - by cmg4life - 20.01.2008, 17:48
Re: Simple House System. 1 line is 1 house. - by ple7y - 20.01.2008, 17:50
Re: Simple House System. 1 line is 1 house. - by cmg4life - 20.01.2008, 17:52
Re: Simple House System. 1 line is 1 house. - by snipe69 - 20.01.2008, 17:53
Re: Simple House System. 1 line is 1 house. - by ple7y - 20.01.2008, 17:56
Re: Simple House System. 1 line is 1 house. - by cmg4life - 20.01.2008, 17:57
Re: Simple House System. 1 line is 1 house. - by weedarr - 20.01.2008, 17:57
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:08
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 18:11
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:12
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 18:17
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:18
Re: Simple House System. 1 line is 1 house. - by Rambo_NL - 20.01.2008, 18:23
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:24
Re: Simple House System. 1 line is 1 house. - by luxeon - 20.01.2008, 18:25
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:28
Re: Simple House System. 1 line is 1 house. - by Rambo_NL - 20.01.2008, 18:33
Re: Simple House System. 1 line is 1 house. - by cvanderburgt - 20.01.2008, 18:34
Re: Simple House System. 1 line is 1 house. - by cmg4life - 20.01.2008, 18:49
Re: Simple House System. 1 line is 1 house. - by Antironix - 20.01.2008, 19:10
Re: Simple House System. 1 line is 1 house. - by Grove - 20.01.2008, 20:44
Re: Simple House System. 1 line is 1 house. - by Rambo_NL - 21.01.2008, 05:21
Re: Simple House System. 1 line is 1 house. - by luxeon - 21.01.2008, 12:49
Re: Simple House System. 1 line is 1 house. - by Antironix - 21.01.2008, 15:19
Re: [INC] Simple House System -- 1 line == 1 house! - by Brad - 21.01.2008, 17:27
Re: [INC] Simple House System -- 1 line == 1 house! - by cvanderburgt - 21.01.2008, 17:38
Re: [INC] Simple House System -- 1 line == 1 house! - by Rambo_NL - 21.01.2008, 19:00
Re: [INC] Simple House System -- 1 line == 1 house! - by luxeon - 21.01.2008, 19:09
Re: [INC] Simple House System -- 1 line == 1 house! - by Rambo_NL - 21.01.2008, 19:19
Re: [INC] Simple House System -- 1 line == 1 house! - by luxeon - 21.01.2008, 19:26
Re: [INC] Simple House System -- 1 line == 1 house! - by Muham3D - 21.01.2008, 19:45
Re: [INC] Simple House System -- 1 line == 1 house! - by webflashing - 21.01.2008, 21:16
Re: [INC] Simple House System -- 1 line == 1 house! - by cvanderburgt - 22.01.2008, 14:22
Re: [INC] Simple House System -- 1 line == 1 house! - by Grove - 28.01.2008, 08:15
Re: [INC] Simple House System -- 1 line == 1 house! - by Antironix - 28.01.2008, 10:43
Re: [INC] Simple House System -- 1 line == 1 house! - by Brad - 28.01.2008, 11:37
Re: [INC] Simple House System -- 1 line == 1 house! - by Muham3D - 28.01.2008, 13:22
Re: [INC] Simple House System -- 1 line == 1 house! - by Antironix - 28.01.2008, 14:03
Re: [INC] Simple House System -- 1 line == 1 house! - by [nl]daplayer - 28.01.2008, 14:14
Re: [INC] Simple House System -- 1 line == 1 house! - by Antironix - 28.01.2008, 14:16
Re: [INC] Simple House System -- 1 line == 1 house! - by [nl]daplayer - 28.01.2008, 15:20
Re: [INC] Simple House System -- 1 line == 1 house! - by Antironix - 28.01.2008, 16:47
Re: [INC] Simple House System -- 1 line == 1 house! - by [nl]daplayer - 28.01.2008, 17:38
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by wijnkamp - 26.05.2008, 12:36
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by wijnkamp - 28.05.2008, 15:10
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Antironix - 28.05.2008, 17:08
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by MKMS - 02.06.2008, 20:54
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by BioFreeze - 03.06.2008, 06:38
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Antironix - 03.06.2008, 12:04
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by winker2k6 - 06.06.2008, 18:09
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by pickford78 - 11.06.2008, 21:33
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by MurdaGame - 15.06.2008, 13:35
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by silvan - 26.06.2008, 10:32
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Antironix - 04.07.2008, 06:51
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by startex - 04.07.2008, 07:32
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Antironix - 04.07.2008, 09:47
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Gimax - 06.07.2008, 12:13
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Snir - 06.07.2008, 19:23
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Gimax - 07.07.2008, 03:58
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by BillyBob31 - 07.07.2008, 16:36
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by startex - 07.07.2008, 20:31
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by Antironix - 08.07.2008, 10:28
Re: [FS] v1.6d || Simple House System || 1 line = 1 house - by startex - 08.07.2008, 14:26
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Anarkien - 02.07.2009, 17:25
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by stevestelford - 03.07.2009, 00:21
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Anarkien - 03.07.2009, 08:10
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Pawno_Master - 03.07.2009, 16:34
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Pawno_Master - 04.07.2009, 10:10
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Pawno_Master - 05.07.2009, 15:09
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by refshal - 05.07.2009, 15:20
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Pawno_Master - 05.07.2009, 15:31
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Goobiiify - 06.07.2009, 23:54
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Goobiiify - 07.07.2009, 00:23
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by DSK_Vyorel - 23.11.2009, 09:43
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Rainer - 24.11.2009, 11:09
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Rainer - 24.11.2009, 14:18
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Rainer - 24.11.2009, 14:19
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Rainer - 27.11.2009, 06:16
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Mike Garber - 28.11.2009, 17:35
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Luka P. - 28.11.2009, 17:35
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Mike Garber - 28.11.2009, 17:50
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Closer - 30.11.2009, 15:12
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by caribe88 - 30.11.2009, 17:42
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Marouane - 04.01.2010, 09:24
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by thecutkiller - 11.01.2010, 14:14
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by x-unit - 11.01.2010, 16:59
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by *ToM* - 11.01.2010, 17:31
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by x-unit - 11.01.2010, 20:34
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by *ToM* - 11.01.2010, 23:06
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by x-unit - 12.01.2010, 16:03
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Youtube - 13.01.2010, 14:41
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by x-unit - 19.01.2010, 11:32
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by braduz - 21.01.2010, 21:08
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Medo - 21.01.2010, 21:14
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by braduz - 21.01.2010, 21:23
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by DRIFT_HUNTER - 23.01.2010, 17:40
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by braduz - 23.01.2010, 18:06
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by DRIFT_HUNTER - 23.01.2010, 18:29
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by braduz - 23.01.2010, 18:52
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Joey09 - 23.01.2010, 19:16
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by MatthewGarrowo - 24.01.2010, 03:02
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by MatthewGarrowo - 24.01.2010, 03:03
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by MatthewGarrowo - 24.01.2010, 04:11
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Martin_M - 31.01.2010, 07:53
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by TouR - 31.01.2010, 10:59
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by SlashPT - 31.01.2010, 12:05
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by TouR - 31.01.2010, 12:32
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by SlashPT - 31.01.2010, 12:37
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Shargrat - 02.02.2010, 22:13
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by matko.basket - 07.02.2010, 01:19
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by KamilSVK - 13.02.2010, 09:35
Re:enter bug - by Kuschel_Kater - 13.02.2010, 17:52
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by ScottCFR - 15.02.2010, 21:07
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by KamilSVK - 16.02.2010, 12:21
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by thecutkiller - 20.02.2010, 17:28
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by DRIFT_HUNTER - 21.02.2010, 02:17
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by [HiC]TheKiller - 27.02.2010, 22:58
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Jackass123 - 28.02.2010, 12:27
Re: Simple House System. 1 line is 1 house. - by DarkPower - 28.02.2010, 15:40
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Jackass123 - 28.02.2010, 17:43
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Jackass123 - 28.02.2010, 17:43
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Hijolion - 28.02.2010, 18:19
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by [HiC]TheKiller - 03.03.2010, 08:52
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by [NWD]Tweener_ - 21.05.2010, 23:02
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by panther74 - 21.05.2010, 23:28
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by franciskyle09 - 23.05.2010, 13:56
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by kill4satan - 31.05.2010, 03:06
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by BaFTa - 02.06.2010, 18:42
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by gtapolicemods - 14.06.2010, 09:01
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by gtapolicemods - 14.06.2010, 09:26
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by randomkid88 - 14.06.2010, 14:55
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by g1X - 15.06.2010, 17:33
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by randomkid88 - 15.06.2010, 19:53
Re: Simple House System. 1 line is 1 house. - by Kyro - 12.02.2011, 21:25
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Stunt_Guy - 13.02.2011, 16:12
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Astralis - 17.12.2011, 11:09
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by stormchaser206 - 24.01.2012, 23:52
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by MikeMike1997 - 25.01.2012, 00:48
Re: Simple House System. 1 line is 1 house. - by Wizardo - 06.02.2012, 15:10
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by hlohavec - 20.07.2012, 14:16
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by Krakuski - 26.07.2012, 05:01
Re: [FS] v1.6e || Simple House System || 1 line = 1 house - by rockhopper - 09.04.2014, 15:59

Forum Jump:


Users browsing this thread: 15 Guest(s)