![]() |
Access Level - 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: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Access Level (/showthread.php?tid=2027) |
Re: Access Level - DarkX - 21-08-2008 Well have you checked the CLS's that Elysium has? It might save diffrently there, or have you checked sub main, or serverinit. I told you it was a bad idea for you to rip from ES when you do not understand it... By the way did you ever get that news system working or is it still overwritting the document on both sides? Re: Access Level - GIAKEN - 21-08-2008 Did you do a SendPlayerData? Re: Access Level - Anthony - 21-08-2008 Make two text boxes call them txtPlayerName and txtPlayerAccess. Make a label and call it lblSetAccess. Double click the label. Enter this code. Code: Private Sub lblSetAccess_Click() Re: Access Level - DarkX - 21-08-2008 Anyway you go about it, it should work better than Code: GetplayerAccess = Administrator then Re: Access Level - JokeofWeek - 04-09-2008 Erm, sorry to necro post, but you definitely shouldn't be doing it the way Anthony said, as all you are doing is checking client side if the player's access is Administrator. This is very insecure and can easily be exploited by using a memory editor. Make sure to send the data over to the server and make sure the player really is an administrator instead of trusting the client. Never, ever trust the client ![]() Re: Access Level - Anthony - 04-09-2008 This is exactly how the client does it with the /setaccess command. It does check it again on the server side anyways. Mirage in general is easily hackable. 90% of these games don't see the light of day and if they do a max of what, 30 players? Maybe. Who cares? Re: Access Level - Nean - 05-09-2008 Anthony Wrote:This is exactly how the client does it with the /setaccess command. The point is, a lot of people (including myself) make games to help improve their coding. Even if it's not going to be used, it's better to learn the right way even if its less convenient, than learn the wrong way, because it's more convenient. It just wastes time later, when you have to relearn it. Re: Access Level - Anthony - 05-09-2008 Good point. Still though, the server checks when the packet gets there. |