[FS]Easy House Maker - Download

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Dies ist nicht von mir. Ich habe das für die Leute rausgesucht die ganz einfach ein Haus machen wollen. :thumbup:
    Quelle: http://forum.sa-mp.com/index.php?topic=40314.0



    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():


    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.



    To make unique houses you must avoid that 2 AddHouses contain the same interior+Virtualworld world.


    2:
    Change MAX_HOUSES to the ammount of houses you have.



    How to add housecars:
    1:
    Put this line under public OnFilterScriptInit():


    AddHouseCar(houseid, modelid, Float:Carx, Float:Cary, Float:Carz, color1, color2, respawn_delay)
    Just fill it in as normal. The houseid is for the house you want to be the car for.


    2:
    Want more cars?
    Just edit #define MAX_BUY_CARS to the number of cars you have.
    And edit this variable:


    new Buyable_Cars[MAX_BUY_CARS][CarInfo] =
    {
    {411,"Infernus",50000},
    {522,"NRG-500",50000},
    {451,"Turismo",50000}
    }


    411=CarModel
    "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/im…857/lossantosbribesw1.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.

  • ich würds garnet versuchen das hier zu benutzen^^

  • wenn man sich im GF mal hinfo
    anschaut, dann wirds klar was man machn muss.^^
    Dann brauch man das hier nicht.^^