|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2007
Posts: 1,439
Reputation: 18
|
Name
Simple House System Files: aHouse.pawn aHouse.amx * a means Antironix Info: On a day i've maded my self a house system, but for twenty lines for each house, i started to make a simple system that will add a house with one line. And voila, i have created it. Non bought houses are locked! How to add houses: 1: Put this line under public OnFilterScriptInit(): Code:
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior, Virtualworld) houseid: This starts always at 0! icon- X/Y/Z: The housepickup infront of the door.(outside). interior - X/Y/Z: The spawn place where you spawn as you enter the house. Cost - The cost of the house. Sell - If you sell the house, you get this value back. Interior - The interior of your house. Virtualworld - To make more rooms. 2: Change MAX_HOUSES to the ammount of houses you have. How to add housecars: 1: Put this line under public OnFilterScriptInit(): Code:
AddHouseCar(houseid, modelid, Float:Carx, Float:Cary, Float:Carz, color1, color2, respawn_delay) 2: Want more cars? Just edit #define MAX_BUY_CARS to the number of cars you have. And edit this variable: Code:
new Buyable_Cars[MAX_BUY_CARS][CarInfo] =
{
{411,"Infernus",50000},
{522,"NRG-500",50000},
{451,"Turismo",50000}
}
"Infernus"=CarName that you have to use in /ordercar [carname] 50000=CarCost Commands: - /buy - /sell - /enter - /exit - /lock - /unlock - /home - /rent - /unrent - /setrent [0/1] [Cost] - /getrent - /payrent - /housestats - /house - /ordercar [carname] Bugs: None at the moment. Only the one I know ![]() Example Houses: AddHouse(0, 1442.9769,-629.5287,95.7186, 2317.8201,-1024.7500,1050.2109, 250000, 200000, 9, 0); AddHouse(1, 1980.9896,-1719.0171,17.0304, 328.1465, 1478.4457,1084.4375, 200000, 150000, 15, 0); Example Houses map: Look at the red circles with the red arrow. http://img171.imageshack.us/img171/4...osbribesw1.jpg Download: http://rapidshare.com/files/108023153/aHouse.rar http://pastebin.com/f189fe528 <-- Fixed Pickups + Rent Note: - If you have done GMX, reload the fs. Hope you like it. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2006
Location: Scotland Occupation: Farmer
Posts: 2,257
Reputation: 336
|
Im no RPG'er but i really like the sound of this! 1 line adds the house and does all the entering nd stuff? Well done, no doubt this will be very handy for people. also mabye add the native for AddHouse() to your post?
WeeDarr |
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: May 2007
Posts: 1,439
Reputation: 18
|
Native added
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2006
Location: Scotland Occupation: Farmer
Posts: 2,257
Reputation: 336
|
has it got a map icon streamer cause i thought the limit was 32 or something?
WeeDarr |
|
|
|
|
|
#5 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2007
Posts: 501
Reputation: 0
|
wow ,nice work ! 10/10.
you can post more screens (how do it look outside etc..) btw: when i started my scriptin career i collected all houses coordinates in LV ,ill just add em in now ![]() (~300tk) + (100+tk in LS ! )man your the best xD going to test it asap. |
|
|
|
|
|
#6 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Posts: 1,484
Reputation: 22
|
wht bout the pickup limit ? NVM
Quote:
so, NICE Paul |
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2007
Posts: 501
Reputation: 0
|
oh ,nice if its 400.
btw: commands : /buy ,/sell ,enter don't work (couldn't test exit )
|
|
|
|
|
|
#8 |
|
Big Clucker
![]() ![]() Join Date: Oct 2007
Posts: 124
Reputation: 0
|
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior)
how to know what interior to put? and what to put here:houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ i'm not a good scripter but will this house when u make it will it have housecar? |
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2007
Posts: 501
Reputation: 0
|
no theres no house car.
what abt interiors - try to find them somewhere ,wiki ,forum. (i will search fort hem to ,if i will find - i will Post link here). |
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Sep 2007
Posts: 1,484
Reputation: 22
|
houseid can be 1 , 2, 3, 4, 5, 6, 7, 8, 9 so when u do somethin with that house u have her ID
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| house system......very simple or hard?? | imosek | Help Archive | 6 | 23/05/2010 09:05 PM |
| [FS] v1.6e || Simple House System ---- Problem | TheDrifter | Help Archive | 1 | 17/05/2010 11:30 AM |
| House System is Reading 22 House] | MahmutBey | Help Archive | 2 | 01/05/2010 11:52 AM |
| Simple House System by Antironix Need HELP | KiraAndPoul | Help Archive | 10 | 16/03/2010 12:31 PM |
| Simple house and int. help | nastoe | Help Archive | 1 | 25/01/2010 10:26 PM |