PDA

View Full Version : [Lua] Tent chat commands.



Grandelf
05-01-10, 12:22 PM
Tent chat command

This script will allow players to spawn a tent. This might be nice for RP servers, ofc. you can use it for all kind of servers.

Commands:

#tent spawn - Will spawn a tent.
#tent delete - Will delete your tent.
#tent activate - Will allow players to spawn a tent (GM only)
#tent deactivate - After using this players wont be able to spawn a tent anymore (GM only)
#tent count - Counts how many tents there are spawned (GM Only)
#tent port - Ports player to his or her tent. (You can put this option off in the scripts.
(Credits for idea of the next 3 commands goes to Neglected)
#tent playerport name - Ports to other players tent.
#tent setpass - Sets a pass so other ppl have to enter a password before they can port to your tent.
#tent pass - The command to enter the pass only usuable after using #tent playerport when the player has set a passw. Only 3 attempts can be made after that you have to use the #tent portplayer again in order to be able to use that command again.

Link to script: http://pastebin.com/f48428767

Dimman
05-01-10, 12:25 PM
Cool, thanks +rep :p