![]() |
Lockable Door OMI!@
this has to work on p2p..
if i say close door it will say "door closed" and nobody can get in untill i say "open door" and maybe i can set a time on it like "open door" then say "time 3" and it will be open for 3 seconds |
i dont know the exact code for p2p but it will have something to do with playerchat&&strequals(#c,sadksald) and then also using something to break it up. I just went blank. On a free it would be a server flag but i dont know for p2p
|
do you want it to be based on guild names or account names or something else?
|
mkay because I have no time it's a definated owner and not changeable
P2P //show stat if player enters if(playerenters){ if(strequals(#s(this.open),close)){message Door closed;} else {message Door open;} } //What happens if touched if(playertouchsme){ if(strequals(#s(this.open),open)){setlevel2 level,x,y;} else {say2 Closed go away!;} } //changing stat if(playerchats && strequals(#a,Account)){ if(strequals(#c,open)){ setstring this.open,open; message Door open; } if(strequals(#c,close)){ setstring this.open,close; message Door closed } } |
Quote:
|
Quote:
//show stat if player enters if(playerenters){ if(save[0]==0){message Door closed;} else {message Door open;} } //What happens if touched if(playertouchsme){ if(save[0]==1){setlevel2 level,x,y;} else {say2 Closed go away!;} } //changing stat if(playerchats && strequals(#a,Account)){ if(strequals(#c,open)){ save[0]=1; message Door open; } if(strequals(#c,close)){ save[0]=0; message Door closed } } just an easy example too but should work ;) |
Quote:
|
All times are GMT +2. The time now is 05:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.