Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.