| Mirage Source http://web.miragesource.net/forums/ |
|
| Access Level http://web.miragesource.net/forums/viewtopic.php?f=201&t=4188 |
Page 1 of 1 |
| Author: | Shadow Dragon [ Thu Aug 21, 2008 7:54 pm ] |
| Post subject: | Access Level |
Ok I added the helpful code for changing the access of a player on the client admin panel, but it doesn't work... Now the one thing that I found is there is nothing changed on the Elysium source(Where I took it from) but it won't operate the same, any suggestions? |
|
| Author: | DarkX [ Thu Aug 21, 2008 8:31 pm ] |
| Post subject: | Re: Access Level |
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? |
|
| Author: | Shadow Dragon [ Thu Aug 21, 2008 9:07 pm ] |
| Post subject: | Re: Access Level |
Well, all that I saw in the CLS's was the same thing as in the regular folders so I don't even know why they were added, and why would it be in sub main, or serverinit? I tried searching for Getaccess and SetAccess but they didn't work because they are the same in MS as they are in ES. And no I didn't get the news code working correctly. |
|
| Author: | GIAKEN [ Thu Aug 21, 2008 9:16 pm ] |
| Post subject: | Re: Access Level |
Did you do a SendPlayerData? |
|
| Author: | Shadow Dragon [ Thu Aug 21, 2008 9:20 pm ] |
| Post subject: | Re: Access Level |
I'm not sure do you think there would actually make a diffrence if I changed the sendplayerdata, and what would I change on it? just add something like Code: SEP_CHAR & SetPlayerAccess & SEP_CHAR & END_CHAR
|
|
| Author: | Anthony [ Thu Aug 21, 2008 9:33 pm ] |
| Post subject: | Re: Access Level |
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()
If GetPlayerAccess(MyIndex) < ADMIN_CREATOR Then Exit Sub Call SendSetAccess(txtPlayerName.Text, txtPlayerAccess.Text) End Sub |
|
| Author: | Shadow Dragon [ Thu Aug 21, 2008 9:39 pm ] |
| Post subject: | Re: Access Level |
Will that actually work? |
|
| Author: | DarkX [ Thu Aug 21, 2008 9:40 pm ] |
| Post subject: | Re: Access Level |
Anyway you go about it, it should work better than Code: GetplayerAccess = Administrator then
call SETPLAYERACCESS |
|
| Author: | JokeofWeek [ Thu Sep 04, 2008 10:41 pm ] |
| Post subject: | Re: Access Level |
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 |
|
| Author: | Anthony [ Thu Sep 04, 2008 11:14 pm ] |
| Post subject: | Re: Access Level |
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? |
|
| Author: | Nean [ Fri Sep 05, 2008 1:58 am ] |
| Post subject: | Re: Access Level |
Anthony wrote: 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? 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. |
|
| Author: | Anthony [ Fri Sep 05, 2008 4:49 am ] |
| Post subject: | Re: Access Level |
Good point. Still though, the server checks when the packet gets there. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|