Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Access Level
#1
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?
Reply
#2
Did you do a SendPlayerData?
Reply
#3
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
Reply
#4
Anyway you go about it, it should work better than
Code:
GetplayerAccess = Administrator then
call SETPLAYERACCESS
Reply
#5
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 Wink
Reply
#6
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?
Reply
#7
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.
Reply
#8
Good point.

Still though, the server checks when the packet gets there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)