![]() |
Admin Block - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Admin Block (/showthread.php?tid=919) |
Admin Block - Braydok - 30-04-2007 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 - Matt - 30-04-2007 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. - Braydok - 30-04-2007 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 - Matt - 30-04-2007 No.. Dude, I will write you this tutorial in a bit. *sigh* - Styre - 30-04-2007 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 :wink: ) - Matt - 30-04-2007 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 - Styre - 30-04-2007 That counts ;P - Braydok - 30-04-2007 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 - Da Undead - 30-04-2007 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 ![]() - Matt - 30-04-2007 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. - Da Undead - 01-05-2007 I don't rip from elysium, never have and never will. To buggy ![]() - Braydok - 04-05-2007 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 - Dragoons Master - 04-05-2007 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. - Matt - 04-05-2007 Make sure you do the check for each direction though. It's really simple. - Braydok - 06-05-2007 the server doesn't have a canmove. |