[Include] [ KIHC ] - [ Kapils Instant House Constructions ] - [ Redefined ]
#1

    • What
      KIHC is a gadget that is used to make infinite number of houses in just a fraction of seconds. As making a single house takes atleast 30mins or above, and making a game with like 200 houses itsself may take to few days, so to cutshot your time and make that a precious one.
    _________________________________________________
    • Features
      • 20 Different House Interiors
      • Map Icons
      • Virtual Worlds
      • Special Interior Option
      • Single line House
      • Spawn at House
      • Free to mod / edit / rebuild / redistrubute
    _________________________________________________
    • Installation
      • Before getting started, you will need to download
        'struct.inc' ( to save data ), 'steam.inc' ( to stream map icons ).
        You will find them with 'MIC'.
      • Once you have downloaded them, place the 3 files( including KIHC.inc)
        in the includes( i.e Server/pawno/include ) folder.
      • Now open your gamemode( script ) in which you want to use KIHC
        and add ' #include <KIHC> ' at the top of the script.
      • Thats all, Follow the 'Usage' to start building houses.
    _________________________________________________
    • Usage
      • In Game Method
        • Once you have installed KIHC, join your server.
        • Login as rcon admin( /rcon login <password> ).
        • Stand on the door of the house and simply type '/buildhouse <optional comment>'.
        • Once you have completed building as many houses you want,
          open your gamemode( script ) and copy the code from,
          'scriptfiles/Houses.txt'.
        • Paste the code under 'OnGameModeInit'.

      • In Script Method
        • BuildHouse(Float:x,Float:y,Float:z,cost = 75000);
          x X cordinate of the door( outside the house ).
          y Y cordinate of the door( outside the house ).
          z Z cordinate of the door( outside the house ).
          cost Optional parameter, is 75000 by default.


        • BuildHouseEx(Float:outsidex,Float:outsidey,Float:outsidez,Float:insidex,Float:insidey,Float:insidez,insidei,cost = 75000);
          outsidexX cordinate of the door( outside the house ).
          outsideyY cordinate of the door( outside the house ).
          outsidezZ cordinate of the door( outside the house ).
          insidexX cordinate of the door( inside the house ).
          insideyY cordinate of the door( inside the house ).
          insidezZ cordinate of the door( inside the house ).
          insidei interiorid of inside of the house.
          cost Optional parameter, is 75000 by default.
      _________________________________________________
      • Download


      _________________________________________________
      • Note
        • This version has no relation with previous versions.
        • Report bugs only via reply's.
        • Updates/Bug Fixes wont be notified, you will have to check the upload date in the download button, inorder to makesure you got the latest version.
_________________________________________________[*]Affiliates
  • MIC -
    • 'Struct' - Save / Load data with flexible features.
    • 'Steam' - Stream map icons, objects, checkpoints at once.
    • 'Crash' - Detects when, why, who and how your server crashed.
    • 'Callback' - Triggers Single-Player events into your script.
  • CMN - Stop defending cheaters, its time to attack them.
  • KIHC - Build houses in the most easiest way ever possible.
  • MD - High quality user interferenced ingame map editing tool.
Reply
#2

Cool!

Thanks Alot Kapil!

Mikster
Reply
#3

not bad but i idnt understand
Reply
#4

i go up to a door

type /build and nothing happens

i then goto my scriptfiles folder and there is nothing there
how come?

Mikster
Reply
#5

Same problem
Reply
#6

Extremely sorry for the inconvinience, Redownload plizzzz.

Quote:

There's a ! operator to invert checks like this.

ya sure ****** but I have said that i have tested it 1001 times, and it didnt crash, instead it made my job easy creating a new file, by the way I have added "io_append" not "io_write". Anyway thx for ur sugestion
Reply
#7

a couple more things.

When this FS Is running it cancels out any other commands

Any Way To Fix?

and also my script doesnt have OnPlayerPickUpPickup , OnPlayerSelectedMenuRow or OnPlayerExitedMenu.

What Should I Do?
Reply
#8

Quote:
Originally Posted by mikster1
1 more thing.
When this FS Is running it cancels out any other commands
Any Way To Fix?
Is it ? well anyway this is a filterscript when u r making the server or gamemode,once u finish making houses u will have no need of this.
And anyway I will check it and fix it soon, its late midnight here, I just came to check if it works 4 all.

REMEMBER:
Quote:

An Err is for MANKIND, To Forgive is for GOD

Reply
#9

Code:
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(91) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(99) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(100) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(101) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(108) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(113) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(115) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(116) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(117) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(121) : error 010: invalid function or declaration
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(1769) : warning 203: symbol is never used: "gMenu2"
C:\PROGRA~1\ROCKST~1\GTASAN~1\Srv\GAMEMO~1\sftdm.pwn(1769) : warning 203: symbol is never used: "gMenue2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Hmm whats wrong.
Reply
#10

I cant get it to work :/ nothing in scriptfiles after i tried building 5-10 houses.
But i forgive you :P hehe
nah its probably my fault its my first gamemode maybe something in there makes it buggy or something.

I did /build large 5 times and 5 small .. but ill try again later with a clean gamemode

Reply
#11

Type /build house small
Reply
#12

OMFG thank u kapil 1 of the best scripts i never seem
Reply
#13

Could someone post what to put in your code if you dont have "OnPlayerPickUpPickup" and all those.... ? PLEASE
Reply
#14

Where is source? i think you zipped wrong file..
Reply
#15

When I try to compile it sais that PAWN.exe need to exit and isnt responding help please !
Reply
#16

Hey i created a guide for ppl who dont know how to use this very good tool:

Step 1: unzip all the stuff un ur samp server folder

Step 2: configure ur server.cfg to run KIHC filterscript

Step 3: open server and go play

Step 4: when u are playin go where u want a house and type /build house small,medium or large if you want more houses go ahead

Step 5: now get out of SAMP and go to scriptifiles folder in ur samp server folder, there should be 5 .txt files named step1 2 3 4 and 5

Step 6: ok now there the most hardest thing (for noobies) open your gamemode script and do step 1 and 2 (very very easy)

Step 7: in your game mode go to the finish of script and copy this:

Quote:

//--------------------------houses----------------------------------------------

public OnPlayerPickUpPickup(playerid, pickupid)
{
THERE COPY STEP 3
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
THERE COPY STEP 4
return 1;
}

public OnPlayerExitedMenu(playerid)
{
FINISH HERE COPING STEP 5
return 1;
}

Step 8: now select all the text on ur script (left click and select all) and pres shoft + tab like 5 or 6 times

Step 9: compile it and vuala

NOTE: before doing this u must go to your gamemode script and where are all the includes put this #include <KIHC>
Reply
#17

thx alot vAx1OnE, I have updated my first script, it also includes a EXAMPLE file, in pastebin

Quote:

When I try to compile it sais that PAWN.exe need to exit and isnt responding help please !

Quote:

Hmm whats wrong.

Makesure u have copied the code in the STEPS completely, coz if u just for get to include " } " ur compiler crashes. And also if u copy a code which u have to paste it in OnPlayerPickupPickup or something to some where else ur server might crash. If u still get errors and Compiler crashes PM me your complete script using pastebin.

Quote:

I did /build large 5 times and 5 small .. but ill try again later with a clean gamemode

You actually needed to do /build house small, /build house large etc. This time I forgive U

Quote:

Could someone post what to put in your code if you dont have "OnPlayerPickUpPickup" and all those.... ? PLEASE

You can have it from the EXAMPLE file

Quote:

Where is source? i think you zipped wrong file..

do u mean .pwn file ? Check the download's tab in my main post.
Reply
#18

I was waiting for this, you own Kapil!
Reply
#19

KIHC has been updated, Pliz refer the FIRST POST
Reply
#20

Nice, Kapil.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)