SA-MP Forums Archive
House Script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: House Script (/showthread.php?tid=158385)



House Script - [Weponz] - 09.07.2010

Were Is A Good/Easy House Script? And Were Are Some House Coordinates?


Re: House Script - willsuckformoney - 09.07.2010

first go here, its pretty easy [TuT]https://sampforum.blast.hk/showthread.php?tid=118379
Second for coordinates go ingame where you want the coordinates at and /save (comment) then go to tur GTA Directory and find saved positions pretty easy wants your used to it.

f.e
This is one of my /save positions ingame i used
Код:
AddPlayerClass(111,-437.6672,1549.8035,78.9463,264.1605,0,0,0,0,0,0); // BEWest
easy right?!

all you need really is the
Код:
-437.6672,1549.8035,78.9463,264.1605
the
Код:
,0,0,0,0,0,0);
are just for weapon players spawn with and ammo but they not used here

The numbers are the coordinates ftw^^

Hopes this could helps ya moowned self a littles


Re: House Script - [Weponz] - 09.07.2010

HouseNames[60], //To save into the file
HouseCost, //The house cost
HouseOwner[24], // The house owners Name
Float:PickupX, // PickupX
Float:PickupY, //PickupY
Float:PickupZ, //PickupZ
Float:TeleX, //The house location
Float:TeleY, //The house location
Float:TeleZ, //The house location
Interior, //The house Interior

How To Find These Details?


Re: House Script - willsuckformoney - 09.07.2010

Quote:
Originally Posted by [Weponz]
Посмотреть сообщение
HouseNames[60], //To save into the file
HouseCost, //The house cost
HouseOwner[24], // The house owners Name
Float:PickupX, // PickupX
Float:PickupY, //PickupY
Float:PickupZ, //PickupZ
Float:TeleX, //The house location
Float:TeleY, //The house location
Float:TeleZ, //The house location
Interior, //The house Interior

How To Find These Details?
easy i guess just do it like this...

later when you add everything you need you will get the line for creating a house

pawn Код:
stock CreateHouse(Filename[], Cost, Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:Telex, Float:Teley, Float:Telez, interior, sell)
{
  return 1;
}
sooz do thus...
pawn Код:
storck CreateHouse("CasinoAppartment",25000,2325.2373,2114.7571,10.8281,302.180999,300.722991,999.148437,4,26000)
You can use that one your self its at the Casino in Old Venturas Strip with Candy girl on top from VC

btw ingame
/save pickup to house

then go to GTA Directory and find saved positions and there here is what i did for the coordinates there

Код:
AddPlayerClass(111,2325.2373,2114.7571,10.8281,178.2254,0,0,0,0,0,0); // pickup into interior
remember you just need the 3 sets of coordinates after the first ,

hope that helps


Re: House Script - [Weponz] - 09.07.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
easy i guess just do it like this...

later when you add everything you need you will get the line for creating a house

pawn Код:
stock CreateHouse(Filename[], Cost, Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:Telex, Float:Teley, Float:Telez, interior, sell)
{
  return 1;
}
sooz do thus...
pawn Код:
storck CreateHouse("CasinoAppartment",25000,2325.2373,2114.7571,10.8281,302.180999,300.722991,999.148437,4,26000)
You can use that one your self its at the Casino in Old Venturas Strip with Candy girl on top from VC

btw ingame
/save pickup to house

then go to GTA Directory and find saved positions and there here is what i did for the coordinates there

Код:
AddPlayerClass(111,2325.2373,2114.7571,10.8281,178.2254,0,0,0,0,0,0); // pickup into interior
remember you just need the 3 sets of coordinates after the first ,

hope that helps
Ok Thanks


Re: House Script - [Weponz] - 09.07.2010

how do u pick interiors/get interior ids,Also do i have to /save in the interior?


Re: House Script - willsuckformoney - 10.07.2010

no you dont...... weedarr.wikidot.com/inetrior


Re: House Script - [Weponz] - 11.07.2010

Thanks i got a 120+ house script working will release it soon,I want to put u in credits for the help,You in as "willsuckformoney" if u want me to change it PM me,