| Mirage Source http://www.miragesource.net/forums/ |
|
| Admin Block http://www.miragesource.net/forums/viewtopic.php?f=210&t=1755 |
Page 1 of 2 |
| Author: | Braydok [ Mon Apr 30, 2007 11:32 am ] |
| Post subject: | Admin Block |
I was wondering if someone could make a tile that only admins could walk through, and it would block players. If someone can make a tutorial for it, I would be greatly appreciative. ~Braydok |
|
| Author: | Matt [ Mon Apr 30, 2007 11:40 am ] |
| Post subject: | |
Have you even tried doing this? It would be VERY simple. You would just add the tile type, then you would add it everywhere you see the block tile type, but when they try to walk through the admin tile, make it check their access, if it's not the right access, then don't let them pass. Pretty simple. |
|
| Author: | Braydok [ Mon Apr 30, 2007 11:42 am ] |
| Post subject: | |
I suppose you're right... Okay, I'll go try, and if I can't get it, then I'll ask. To the Kill Tile tutorial!!! ~Braydok |
|
| Author: | Matt [ Mon Apr 30, 2007 11:43 am ] |
| Post subject: | |
No.. Dude, I will write you this tutorial in a bit. *sigh* |
|
| Author: | Styre [ Mon Apr 30, 2007 12:03 pm ] |
| Post subject: | |
Mehh,, I think Elec goes to the kill tile tut to see how he can add tile types. allthough you learn more by just looking at a vannila source and trying to understand it. So I think no tut needed ,, and BTW if Elec makes it and he wants to share it ,, he makes a tut. (No offence, just trying to help reducing your workload |
|
| Author: | Matt [ Mon Apr 30, 2007 12:12 pm ] |
| Post subject: | |
No problem. This is like a 5 minute feature. I don't currently have a workload, unless you count taking care of my son. xD |
|
| Author: | Styre [ Mon Apr 30, 2007 12:21 pm ] |
| Post subject: | |
That counts ;P |
|
| Author: | Braydok [ Mon Apr 30, 2007 3:04 pm ] |
| Post subject: | |
Yeah, that counts. Styre was right, I'm looking at the kill tile tut to see how he does it. But if you want to write the tut, that would help. ~Braydok |
|
| Author: | Da Undead [ Mon Apr 30, 2007 9:05 pm ] |
| Post subject: | |
Why look at kill tut, just look at regular block and copy/paste and rename. But on the block part, make it where... If GetPlayerAccess(index) < 1 Then Call block (or w-e) Else End If But im sure advocate will make a nice tut for this, btw you could of just ripped from elysium |
|
| Author: | Matt [ Mon Apr 30, 2007 9:15 pm ] |
| Post subject: | |
Ripping from ES, copy/paste. That's not the answer to everything kid. Specially if you actually want to learn something. But we can all tell you haven't learned anything at all. |
|
| Author: | Da Undead [ Tue May 01, 2007 8:50 pm ] |
| Post subject: | |
I don't rip from elysium, never have and never will. To buggy |
|
| Author: | Braydok [ Fri May 04, 2007 9:14 pm ] |
| Post subject: | |
Well, if I could figure out how to make it so that in the playermove sub, it doesn't let you move, I could probably make this work, but I can't figure it out... it keeps booting me for the position mod, (I know why it does this, but I'm just trying to make it so that a person can't move... ~Braydok |
|
| Author: | Dragoons Master [ Fri May 04, 2007 10:58 pm ] |
| Post subject: | |
You want a char to not be able to move to an specific square, so check all the positions he tried to move(that's already done) and just a dd a check: if map(i).tile(x,y).type = map_tile_block_or_something_like_that then canmove = false That's basicly it. |
|
| Author: | Matt [ Fri May 04, 2007 11:22 pm ] |
| Post subject: | |
Make sure you do the check for each direction though. It's really simple. |
|
| Author: | Braydok [ Sun May 06, 2007 9:44 pm ] |
| Post subject: | |
the server doesn't have a canmove. |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|