Posts: 44
Threads: 4
Joined: Feb 2011
Reputation:
0
How will i make a command that is like /createhouse. When the player types the command he have to give the interior id and after giving that a checkpoint will be created and when a player enters that checkpoint he will he transferred to that interior. Please don't tell to ****** it or search in wiki. I have tried that
Posts: 1,113
Threads: 110
Joined: Nov 2009
Reputation:
0
[troll]****** or search in wiki.[/troll]
It would involve saving it via dini, djson or sql.
Posts: 44
Threads: 4
Joined: Feb 2011
Reputation:
0
Yes I know but I have ended in huge disgrace
Posts: 44
Threads: 4
Joined: Feb 2011
Reputation:
0
do i have to take pVar for that?
Posts: 119
Threads: 10
Joined: Jan 2011
Reputation:
0
You can use PVars only for saving player's information, for example - saving the player's owned-house.
You will have to learn atleast one saving method (Dini/MYSQL/any other saving system) so you can create and save your houses to a file/database.
Posts: 44
Threads: 4
Joined: Feb 2011
Reputation:
0
yes i know it but it's not happening!! Is there any example script for that?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
What you want is called a "dynamic house system"
There are serveral perfectly working script here in the forum, just search for them.
Posts: 1,733
Threads: 20
Joined: Nov 2010
Reputation:
0
My GM has a built-in housing system.
Look in the file "PPC_PlayerCommands.inc" (download link is in my sig) for the command "/createhouse" and go from there.
But it's quite complex, as the housing system is integrated into several different files, callbacks and other functions.
Posts: 1,110
Threads: 183
Joined: Jul 2009
Reputation:
0
This is not a tough question, this is a kid asking for people to make something for him.