Create a room?
How can I create a "room" at the given x/y/z coordinates with a fixed size to which I can teleport players (for a knife duel)? :)
|
Re: Create a room?
It's not exactly a very realistic idea. I doubt anyone would want to make the models for each wall.
Perhaps you could try taking a look at the knife duel plugin and change the opponent distance check to check the distance from where you and your opponent started, so effectively you'd have an invisible wall around the players. |
Well I just want to make simple walls with one color or a transparent box. I've been searching the forums and found this (edited a little):
PHP Code:
http://i46.servimg.com/u/f46/15/56/01/28/untitl11.jpg But the server crashes when I touch it or shoot at it. :( |
Re: Create a room?
Quote:
|
Re: Create a room?
There isn't any. That is the whole code.
|
Re: Create a room?
There is two ways to do this. You can make one entity which you let only the two players to get inside ( it is solid for others ) or make solid entities for each wall. The question is do you want the knife fighting players to be able to leave the room and do you want that everyone sees the room walls? I would like to see some real models and solid walls, but it is you who needs to get the model.
|
Re: Create a room?
Your code will only create a solid box, not 6 walls where players can run inside.
You should give the entity a model as well. |
Quote:
|
Re: Create a room?
Quote:
Your code crashes the server most likely because there is no model. |
| All times are GMT -4. The time now is 00:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.