![]() |
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 Owner:player.account;
heres the script: PHP Code:
|
You're assigning the owner variable backwards.
this.variable = this.value; Also you're mixing GS1 with GS2 again.. I could of sworn we went over this in another thread. Use this.chat instead of message. this.chat = "whatever you want it to say" SPC player.account; You can store the account in a attr[], and use that on the clientside to prevent people from walking into it or whatever you want. Example: PHP Code:
if (this.variable != null) echo("This variable has a value of" SPC this.variable @ "!"); |
Use a trigger client, basically the same thing as trigger server just backwards
ie. PHP Code:
|
This is probably a level NPC, so triggerclient won't work.
|
Quote:
|
Quote:
I don't even see why he needs it. onPlayertouchsme() works on serverside too... so... He could also just pass the owner through an attr if that's all he needs for comparing. |
| All times are GMT +2. The time now is 04:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.