View Single Post
  #1  
Old 07-16-2009, 05:36 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Post parking space script

hi im making this parking script thing where you buy a space for the day and you can park your car there, and it doesnt allow anyone else to do so. I got a problem though, whenever I say /space 1, it is supposed to say Owner: player.account, but it doesnt. Also I think the script is supposed to be serverside, but whenever I make it serverside, anyone can go into the space and its not blockable so i gotta make it clientside. but the problem with it being clientside is that only I can see Ownerlayer.account;

heres the script:

PHP Code:
function onPlayerChats()
 {
if (
player.chat == "/space 1")
  {
if (
clientr.item.Money>1000)
   {
player.account=this.owner
clientr
.item.Money-=1000;
player.addMsg2("You have rented space 1 for the day!");
message Ownerplayer.account SPC!;

dontblock;
  }
else
player.addMsg2("You do not have enough money to rent a space!");
 }

Reply With Quote