[FilterScript] [FS] Stefan's Elite House System v1.1
#1



This house system uses dini and sscanf so make sure you include those files.

Houses
Creating a house is very simple and easy. All you do is stand at the position that you want to create a house and type /createhouse [House Price] [House level]. It will set the house to sellable and create a house icon on that postion.
To destroy a house is just as easy. Simply type in /destroyhouse [houseid] and you can retrieve the house id by going to the house icon and typing /houseinfo
All these commands can be done in game and will save the information to an ini file in the scriptfiles folder.
Other important info
In order to use all the commands you will need add this coding into your gamemode and save the players houseid to there files so you can detect if they are tenants.
These houses are set up a bit more complex than others you have seen before buts its a good thing. Every time you create a new house the virtual Id will increase by one for the next created house. So even if you go into the same house interior but at different locations you wont needs to worry about bumping into other people.

/evict
/tenants
/(un)renthouse
Can only be used if you integrate my system with your gamemode because it requires players ini file settings to be saves there.


Owner House Commands:
/(un)sellhouse, /(un)lockhouse, /rentprice, /tenants, /evict, /house (upgrade/downgrade)

Player House Command:
/houseinfo, /buyhouse, /(un)renthouse, /enter, /exit


Reply
#2

nice i like it
Reply
#3

thanks
Reply
#4

I love it =P
Reply
#5

cool
good for RP servers right
Reply
#6

Nice

Very useful for RP servers :P
Reply
#7

wwwwooooww nicee!!

EDITL: can you make it for Rcon admins only?? man... cuz normal players are allowed to make houses too and i find that lame
Reply
#8

Just place this within the /createhouse and /destoyhouse command

Код:
if(!IsPlayerAdmin(playerid) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
Reply
#9

Quote:
Originally Posted by kevin974
Just place this within the /createhouse and /destoyhouse command

Код:
if(!IsPlayerAdmin(playerid) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
C:\DOCUME~1\HP_ADM~1\Desktop\STEFAN~1.0\FILTER~1\H omes.pwn(487) : error 001: expected token: ")", but found "return"
C:\DOCUME~1\HP_ADM~1\Desktop\STEFAN~1.0\FILTER~1\H omes.pwn(500) : error 001: expected token: ")", but found "return"
C:\DOCUME~1\HP_ADM~1\Desktop\STEFAN~1.0\FILTER~1\H omes.pwn(546) : warning 203: symbol is never used: "IsNumeric"
C:\DOCUME~1\HP_ADM~1\Desktop\STEFAN~1.0\FILTER~1\H omes.pwn(546) : warning 203: symbol is never used: "ReturnUser"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

i got 2 errors from that...
Reply
#10

Here lol

Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
Reply
#11

erm.. cant enter house! dude.. theres lots to be worked on i think many commands dont work

EDIT: please try to edit alot more.. like i do /enter nothing happens sais that im not in house icon.
Reply
#12

Yeah i know why too now. I will upload a fixed edit soon.

There are 4 commands that do not work unless you can integrate it with your gamemode too: evict, tenants, renthouse, unrenthouse

So you will need to integrate it if you want to get the full usage out of it.
Reply
#13

I will redownload this fs when it will be fixed and have interior, when i do /enter
Reply
#14

Ok i have reuploaded it and tested it and all working.
Reply
#15

Quote:
Originally Posted by kevin974
Ok i have reuploaded it and tested it and all working.
yeah take your time and if you can try adding more stuff like save weaopon and money in it.. or something you know.. and its not gonna be bad if its gonna take a week just make it better aloott better!! and add more detailes to this thread so it gives us more info about stuff

anyways good work i love the base of this script just add more stuff and fix
Reply
#16

Quote:
Originally Posted by kevin974
Here lol

Code:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
where about in the script do i put that?
Reply
#17

Quote:
Originally Posted by Ritchie999
Quote:
Originally Posted by kevin974
Here lol

Code:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
where about in the script do i put that?
way at the buttom like last part in script.. like end end buttom
Reply
#18

I have allready added it in /createhouse and /destroyhouse so there is no need to put it there now.
Reply
#19

ok
Reply
#20

so lets say i want to use these houses on another game mode, or my own custom script.... how would i do that?
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)