[FilterScript] Yet Another House System
#1

Commands:

* /house - Opens the house menu, house owner only.
* /createhouse [price] [interior id] - RCON admins only, lets you create a house.
* /hsetinterior [house id] [interior id] - RCON admins only, lets you change a house's interior.
* /hsetprice [house id] [price] - RCON admins only, lets you change a house's price.
* /resethouse [house id] - RCON admins only, resets a house.
* /deletehouse [house id] - RCON admins only, deletes a house.
* [added in v1.2] /gotohouse [house id] - RCON admins only, teleports you to house's entrance you specified ID of.

Some Features:

* Furnitures: You can place as many furnitures as you want thanks to Streamer Plugin.
* Gun Storage: You can store your guns in your house and take them whenever you want.
* House Safe: You can put your money to your house safe and take it from there whenever you want.
* Lock Modes: You can lock your house using a password or set it to owner only, or make it unlocked so everyone can get in and see your beautiful house!
* Resetting: If a house owner doesn't visit their house for 7 days, they will lose their house and everything in it.
* [added in v1.1] Visitor History: You can see who visited your house from house menu. Visitors only gets tracked when house is not locked.
* [added in v1.2] House Addresses: Every owned house will get an address now. Addresses look like this: <houseid, zone, city/county>. Example: "1, Jefferson, Los Santos"
* [added in v1.2] House Keys: Instead of forcing people to write a password to enter your house(password lock still exists, don't worry) you can give people keys for your house and set your house's lock mode to Keys. (/givehousekeys, /takehousekeys, /myhousekeys) Also you can change locks from /house menu so old keys won't work anymore.
* [added in v1.3] House Selling: You can put your house up for sale and other players can buy it from you, paying the price you decided. If you were offline at the time someone bought your house, don't worry because you'll get your money once you connect and spawn.
* [added in v1.3] House Limits: You can decide how many houses a player can own by using LIMIT_PER_PLAYER define. If you set it to 0, players can buy as many houses as they want. If you set it to something else, players won't be able to buy more houses than LIMIT_PER_PLAYER's value.

Adding New Interiors/Editing Interiors:

You can add your new interior data to HouseInteriors array, or edit existing interiors from there.

Adding New Furnitures/Editing Furnitures:

You can add your new furniture data to HouseFurnitures array, or edit existing furnitures from there.

Changelog:

v1.3:
* Added house selling, you can put your houses for sale. When your house is bought by an another player, you'll receive your money. When you buy a house, most of the stuff it has(guns, furnitures) also will be yours.
* Added a house buying limiter, a player can't buy more than LIMIT_PER_PLAYER houses. Set LIMIT_PER_PLAYER to 0 if you want no limits.
* Internal changes like replacing the DIALOG_HOUSE+x format with e_dialogids enum and a little bit of code cleanup.

v1.2:
* SQL Importing is no longer needed, filterscript will create required tables if they don't exist on FilterScriptInit.
* Added /gotohouse which teleports you to house's entrance you specified ID of. (RCON only.)
* House Kicking, you can kick somebody or everybody from your house, to kick somebody use /kickfromhouse, to kick everybody use /house menu.
* House Keys, instead of forcing people to write a password to enter your house(password lock still exists, don't worry) you can give people keys for your house and set your house's lock mode to Keys. (/givehousekeys, /takehousekeys, /myhousekeys) Also you can change locks from /house menu so old keys won't work anymore.
* House Safe History, you can track your house safe activity now.
* House Addresses, every owned house will get an address now. Addresses look like this: <houseid, zone, city/county>. Example: "1, Jefferson, Los Santos"

v1.1:
* Added house visitors feature. You can see who visited your house from house menu. Visitors only gets tracked when house is not locked.
* Changed furniture buying and house guns dialogs styles. They're now using DIALOG_STYLE_TABLIST_HEADERS instead of DIALOG_STYLE_LIST.

Credits:

* Incognito for Streamer Plugin
* ****** for sscanf, YSI
* BlueG, maddinat0r for MySQL Plugin
* Zeex for ZCMD
* Vince for his tutorial about a great way of weapon saving

English isn't my first language, if I did any mistakes, sorry about that.
Reply
#2

Good job , keep UP !
Reply
#3

10/10 breddy gud
Reply
#4

Nice,Useful
8/10
Reply
#5

Good job dude..
Keep it up^^
Reply
#6

Good system.
Reply
#7

Cool script.
Could you please upload your sampgui file? I love the interface.
Reply
#8

Quote:
Originally Posted by ArchB42
View Post
Cool script.
Could you please upload your sampgui file? I love the interface.
Sure. click here
Reply
#9

Very well done.

+rep
Reply
#10

on which version?
Reply
#11

Quote:
Originally Posted by krtko
View Post
on which version?
look at this

Quote:
Originally Posted by rootcause
View Post
* I was using 0.3.7 when I wrote this filterscript, so I don\'t know how well it would work on lower versions.
Reply
#12

why error ?
D:\GTA SAMP\pawno\include\streamer.inc(377) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
D:\GTA SAMP\pawno\include\streamer.inc(399) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
D:\GTA SAMP\filterscripts\House.pwn(222) : error 017: undefined symbol "mysql_format"
D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(223) : error 017: undefined symbol "mysql_tquery"
D:\GTA SAMP\filterscripts\House.pwn(232) : error 017: undefined symbol "mysql_format"
D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(233) : error 017: undefined symbol "mysql_tquery"
D:\GTA SAMP\filterscripts\House.pwn(241) : error 017: undefined symbol "mysql_format"
D:\GTA SAMP\filterscripts\House.pwn(241) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition
D:\GTA SAMP\filterscripts\House.pwn(243) : error 017: undefined symbol "mysql_tquery"
D:\GTA SAMP\filterscripts\House.pwn(265) : error 017: undefined symbol "cache_num_rows"
D:\GTA SAMP\filterscripts\House.pwn(271) : error 017: undefined symbol "cache_get_field_content_int"
D:\GTA SAMP\filterscripts\House.pwn(272) : error 017: undefined symbol "cache_get_field_content"
D:\GTA SAMP\filterscripts\House.pwn(272) : warning 215: expression has no effect
D:\GTA SAMP\filterscripts\House.pwn(272) : error 001: expected token: ";", but found ")"
D:\GTA SAMP\filterscripts\House.pwn(272) : error 029: invalid expression, assumed zero
D:\GTA SAMP\filterscripts\House.pwn(272) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Reply
#13

Quote:
Originally Posted by Hanz
View Post
why error ?

D:\GTA SAMP\pawno\include\streamer.inc(377) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")

D:\GTA SAMP\pawno\include\streamer.inc(399) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")

D:\GTA SAMP\filterscripts\House.pwn(222) : error 017: undefined symbol "mysql_format"

D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(222) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(223) : error 017: undefined symbol "mysql_tquery"

D:\GTA SAMP\filterscripts\House.pwn(232) : error 017: undefined symbol "mysql_format"

D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(232) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(233) : error 017: undefined symbol "mysql_tquery"

D:\GTA SAMP\filterscripts\House.pwn(241) : error 017: undefined symbol "mysql_format"

D:\GTA SAMP\filterscripts\House.pwn(241) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(241 -- 242) : warning 202: number of arguments does not match definition

D:\GTA SAMP\filterscripts\House.pwn(243) : error 017: undefined symbol "mysql_tquery"

D:\GTA SAMP\filterscripts\House.pwn(265) : error 017: undefined symbol "cache_num_rows"

D:\GTA SAMP\filterscripts\House.pwn(271) : error 017: undefined symbol "cache_get_field_content_int"

D:\GTA SAMP\filterscripts\House.pwn(272) : error 017: undefined symbol "cache_get_field_content"

D:\GTA SAMP\filterscripts\House.pwn(272) : warning 215: expression has no effect

D:\GTA SAMP\filterscripts\House.pwn(272) : error 001: expected token: ";", but found ")"

D:\GTA SAMP\filterscripts\House.pwn(272) : error 029: invalid expression, assumed zero

D:\GTA SAMP\filterscripts\House.pwn(272) : fatal error 107: too many error messages on one line


Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase



12 Errors.
Update your includes.
Reply
#14

Very good script
The house system would be able to create and cars as tuning and so
Reply
#15

One of the best house filterscripts I`ve seen so far. Good job!
Reply
#16

Vary good
Reply
#17

Thanks for the replies guys!

I\'ve added a few screenshots to the first post.
Reply
#18

i love it good job~
Reply
#19

Please Car system Put into HS to a player to create a car to your house
Reply
#20

Can u Give Me This Map mood? please
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)