![]() |
Door -.-
I know its simple but
//#CLIENTSIDE if(playerchats && strequals(#c,open) && strequals(#a,a1tjm)){ hidelocal; } if(playerchats && strequals(#c,close) && strequals(#a,a1tjm)){ showlocal; } if(playerchats && strequals(#c,open) && strequals(#a,papajchris)){ hidelocal; } if(playerchats && strequals(#c,close) && strequals(#a,papajchris)){ showlocal; } If I use it it would only work for my account and it would not block or open for other users who try to enter =o I am not a great scripter :( |
|
:(
I still don't get it x.x
|
*claps* (not bad for a beginner really)
*points to KSI link* you should have nested the chat checks in a playerchats event block, and you could just group the account checks together, but that'd be ugly |
Quote:
|
If you want it to block for all the players, take out the //#CLIENTSIDE and use the commands hide and show rather than hidelocal and showlocal
|
Re: Door -.-
Quote:
NPC Code: Do something like this. NPC Code: |
You have to use triggeraction to get from clientside to serverside.
-The playerchat is checked clientside, aswell as the account name. Then use triggeraction, and the hide part goes serverside. |
Quote:
Check serverside, perform serverside. |
check playerchats serverside....uh huh?
|
Yep. Something wrong with me doing playerchat checks serverside?
|
no, no, nothing... appart from the fact it won't work.
|
Yes it does work, just fine.....
Ever even attempt it? |
so your saying this will work?
NPC Code: ? Sorry but it doesn't. |
It works fine for me.
|
im talking "without the clientside part"
look: Correct: NPC Code: Incorrect: (posted in last post) Where are you testing this? |
Lenoxion Online,
|
Quote:
|
yea I am. I just tested it... Unless theres something really weird going on...
|
DB NPC or local level npc?
|
DB NPC.
Thats probably where we are getting confused. I've never actually tried if (playerchats) serverside on a local levels npc. *trys it* |
Quote:
|
yes, I tested on a weapon and It wasn't working....but I see now that it works on a level npc, also a level-db npc.
|
Serverside playerchats checks should be working on everything except weapons, as the serverside code there can only be called with a triggeraction.
|
What happened to the door?
What happened to the conversation about the door?
|
ok, heres a (non-clientside) shortened version of the door you had if you wanted others to get in after you say open...
NPC Code: Note to Kaimetsu: Does it follow the KSI-GS? |
Quote:
|
Okay Kai...(is it ok if i call you that?) here's the code with KSI-GS Standards...
NPC Code: |
Quote:
|
Quote:
|
It must be perfect now.
NPC Code: Proplem solved! ^_^ |
| All times are GMT +2. The time now is 06:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.