Help House :D - 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)
+--- Thread: Help House :D (
/showthread.php?tid=556571)
Help House :D -
astanalol - 10.01.2015
Hello Guys
i Want Know How To Make House CMD:CreateHouse
1.CreateDynamicCP > Save Pos i in it to when i exit be in Last Pos
2.CreateDynamicCP> Exit And Goto Last Pos
Please Help Me i Want Know it
1.i want one interior
interior
Pos
PHP код:
271.884979,306.631988,999.148437
2.DynamicCP Exit With This Pos
PHP код:
269.2042,304.8026,999.1484
Please Help Me +Rep
Re: Help House :D -
CalvinC - 10.01.2015
Please just use ******, there's lots of tutorials, anyways i found a tutorial for you that might be what you're looking for.
https://sampforum.blast.hk/showthread.php?tid=287541
Re: Help House :D -
astanalol - 10.01.2015
Quote:
Originally Posted by CalvinC
|
im dont use SII / i use y_ini
i want know how to make it
i dont need much somthings in it to can i know what i do in my script and can update it to good
i want it simple to know fast
still need help please
Re: Help House :D -
astanalol - 11.01.2015
Guys Help me to know please ?
+rep
Re: Help House :D -
astanalol - 11.01.2015
Quote:
Originally Posted by astanalol
Hello Guys
i Want Know How To Make House CMD:CreateHouse
1.CreateDynamicCP > Save Pos i in it to when i exit be in Last Pos
2.CreateDynamicCP> Exit And Goto Last Pos
Please Help Me i Want Know it
1.i want one interior
interior Pos
PHP код:
271.884979,306.631988,999.148437
2.DynamicCP Exit With This Pos
PHP код:
269.2042,304.8026,999.1484
Please Help Me +Rep
|
Please Guys Help +Rep
Re: Help House :D -
Ironboy - 11.01.2015
You gotta start from basic scripts there are plenty of them in the tut section, no one will spoon feed you. Making this cmd doesn't take a long while tho if you put some effort.
Re: Help House :D -
astanalol - 11.01.2015
Quote:
Originally Posted by Ironboy
You gotta start from basic scripts there are plenty of them in the tut section, no one will spoon feed you. Making this cmd doesn't take a long while tho if you put some effort.
|
i want know only
when player exit back to his pos
?
idk how to make it
like any house system FS
i want know how to made exit pos when i create the dynamic house
Re: Help House :D -
Ironboy - 11.01.2015
Quote:
Originally Posted by astanalol
i want know only
when player exit back to his pos ?
idk how to make it
like any house system FS
i want know how to made exit pos when i create the dynamic house
|
This is one basic script which saves before teleport to the interior and loads back the old location
pawn Код:
new Float:currentp[MAX_PLAYERS][4]; //top of the script (which saves the player current pos)
//saving the player pos before theleporting to the interior
GetPlayerPos(playerid,currentp[playerid][0],currentp[playerid][1],currentp[playerid][2]); // save x,y and z for this player.
GetPlayerFacingAngle(playerid,currentp[playerid][3]);
//teleport the player inside the house
SetPlayerPos(playerid, HouseInfo[houseid][HouseiX], HouseInfo[houseid][HouseiY], HouseInfo[houseid][HouseiZ]);
SetPlayerInterior(playerid, HouseInfo[houseid][Housei]);
//This must be the exit cmd
SetPlayerPos(playerid, currentp[playerid][0],currentp[playerid][1],currentp[playerid][2]);
SetPlayerInterior(playerid, 0);