SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 22/04/2011, 09:50 PM   #1
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,392
Reputation: 127
Default Sasinosoft Houses: Dynamic House-Business System

Warning
It may have problems running on SA-MP 0.3e.
I made this during SA-MP Server 0.3c.
DOWNLOAD THE NEW VERSION 2.0 for SA-MP 0.3e
http://forum.sa-mp.com/showthread.php?t=405201

Description

This is a script with no commands to execute: It's only done with dialogs, and there are no client messages or game texts, but only message boxes.

You create the houses and stores with the functions.

The owner of a business can open/close, rename and sell it.
He automatically gets the setted money every 10 minutes.

The owner of a house can open/close and sell his house.
When he is in the house he can use the KEY_ENTER_PROPERTY to open the storage, and he can deposit weapons and money.

Main Functions

CreateHouse(houseid, Float:eX, Float:eY, Float:eZ, Float:iX, Float:iY, Float:iZ, BuyPrice, SellPrice, INT, VW)

Function: Creates a house.

Parameters:
-houseid: The ID of the house. Don't use 2 houses with the same ID
-Float:eX, eY, eZ: The exterior position of the house
-Float:iX, iY, iZ: The interior position of the house
-BuyPrice: The cost of the house
-SellPrice: The amount of money the owner gets when he sells the house
-INT: The interior of the house
-VW: The virtual world of the house

Returns:
-true(1): When the house already exists and successfully loaded
-null(-1): When the house didn't exists but successfully created
-false(0): When can't read a file(Won't be created)


CreateBusiness(bizid, defaultname[24], Float:eX, Float:eY, Float:eZ, Float:iX, Float:iY, Float:iZ, BuyPrice, SellPrice, Earn, INT, VW)

Function: Creates a business.

Parameters:
-bizid: The ID of the biz. Don't use 2 biz with the same ID
-defaultname[24]: The default name of your store (Max Lenght 23 letters)
-Float:eX, eY, eZ: The exterior position of the biz
-Float:iX, iY, iZ: The interior position of the biz
-BuyPrice: The cost of the biz
-SellPrice: The amount of money the owner gets when he sells the biz
-INT: The interior of the biz
-VW: The virtual world of the biz

Returns:
-true(1): When the biz already exists and successfully loaded
-null(-1): When the biz didn't exists but successfully created
-false(0): When can't read a file(Won't be created)

These were the 2 only functions you need to create a house or a store.
The other functions are explained in the script if you want to edit it.

Constants To Change

pawn Code:
#define MAX_HOUSES 100  //Change to your max amount of houses
#define MAX_BUSINESSES 100 //Change to your max amount of businesses
#define HOUSE_FILE "SasiHouses/Houses/HouseID%d.ini" //Don't remove %d.ini
#define BIZ_FILE "SasiHouses/Stores/BizID%d.ini" //Don't remove %d.ini
#define PRINT_HOUSES //Comment if you don't want the log of loaded houses
#define KEY_ENTER_PROPERTY KEY_WALK //Change this to the key you want. (Default Mouse Cen).

Screenshots





Uploaded with ImageShack.us

EDIT: Bugs

Yesterday I found a little bug, When you buy a store you earn money, but when you restart the server, the script doesn't read the key "Money" in the business file.

EDIT: FIXED.

Download

- Removed. Check version 2.0 http://forum.sa-mp.com/showthread.php?t=405201

Credits

All the script: [GF]Sasino97
SII (Slick's ini include): [DRuG]Slick
Testing: [GF]Michi_Angel, [GF]Candy_Ale, [GF]Gianluca6

Last edited by Sasino97; 05/01/2013 at 09:15 PM.
Sasino97 is online now   Reply With Quote
Old 22/04/2011, 09:53 PM   #2
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,299
Reputation: 365
Default Re : Sasi-Houses: Advanced House-Store System - Based On Dialogs

Nice release
Naruto_Emilio is offline   Reply With Quote
Old 23/04/2011, 09:56 AM   #3
...:Lucian:...
Big Clucker
 
...:Lucian:...'s Avatar
 
Join Date: Dec 2010
Location: Romania
Posts: 94
Reputation: 0
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Good Job
...:Lucian:... is offline   Reply With Quote
Old 23/04/2011, 09:57 AM   #4
wheelman_WM
Huge Clucker
 
wheelman_WM's Avatar
 
Join Date: Jan 2011
Location: Sun
Posts: 397
Reputation: 0
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Nice
wheelman_WM is offline   Reply With Quote
Old 23/04/2011, 10:02 AM   #5
Salsa
Huge Clucker
 
Salsa's Avatar
 
Join Date: Apr 2011
Location: Tokoyo, Japan
Posts: 436
Reputation: 13
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

AWESOM
__________________
Hosted Tab For 13$ Per Month : DISABLE NOW
Mapping For $ Pm Me If You Want Maps
Need Registered IRC Channel Pm Me I Can Make Irc Channel's On Request
Salsa is offline   Reply With Quote
Old 23/04/2011, 10:02 AM   #6
BlackStones
Big Clucker
 
BlackStones's Avatar
 
Join Date: Apr 2011
Location: Los Angeles
Posts: 76
Reputation: 10
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Good Job man nice [fs] Keep it up
__________________

VISIT OUR GAMING SITE:FORUMS+Visit our blog:BLOG
BlackStones is offline   Reply With Quote
Old 25/04/2011, 04:16 PM   #7
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,392
Reputation: 127
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Thanks
Sasino97 is online now   Reply With Quote
Old 25/04/2011, 09:19 PM   #8
benedek
Big Clucker
 
benedek's Avatar
 
Join Date: Sep 2009
Posts: 82
Reputation: 3
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

english version ?
__________________







benedek is offline   Reply With Quote
Old 25/04/2011, 10:03 PM   #9
[ZFM]Zuc
Huge Clucker
 
[ZFM]Zuc's Avatar
 
Join Date: Sep 2009
Posts: 373
Reputation: 26
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Ti consiglierei perņ di fare le screen quando hai i testi in inglese. forse č meglio XD! (almeno qui in sa-mp forum. in forum ITALIANI allora fa pure ma qui č meglio se fain tutto in inglese)
[ZFM]Zuc is offline   Reply With Quote
Old 27/04/2011, 12:31 PM   #10
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,392
Reputation: 127
Default Re: Sasi-Houses: Advanced House-Store System - Based On Dialogs

Quote:
Originally Posted by benedek View Post
english version ?
The english and italian version are in the same SOURCE. you have to define 'ENGLISH' or 'ITALIAN'.

if you do:

pawn Code:
#define LANGUAGE ENGLISH

The compiler will compile only the english piece.

Otherwise:

pawn Code:
#define LANGUAGE ITALIAN

Will compile the .amx file in italian.

Quote:
Originally Posted by [ZFM]Zuc View Post
Ti consiglierei perņ di fare le screen quando hai i testi in inglese. forse č meglio XD! (almeno qui in sa-mp forum. in forum ITALIANI allora fa pure ma qui č meglio se fai tutto in inglese)
Gli screenshots gli avevo fatti prima della versione in inglese, e mi rompevo a rifarli...
Sasino97 is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Cali-Houses: Create a house anywhere, dynamic house creating! California Filterscripts 257 31/05/2018 03:23 AM
[HELP] Business & House level system. FinestCalis Help Archive 1 26/04/2011 07:21 PM
business system {Dynamic} Robert_Crawford Help Archive 0 10/03/2011 11:14 AM
Dialog at dynamic house system Padarom Help Archive 2 07/01/2011 03:08 AM
[HELP] Dynamic house system Pooh7 Help Archive 5 01/01/2011 07:32 PM


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.