Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Code Not Working...
#11
If you don't mind Beres please do. I could probably learn something from the code you make. Also, I will be the only one with the power to delete. And I am only putting this in the game so then I don't have to go through the hassle of deleting his character from the files.

Also I made another code based on the one you showed me. Would this work? Sorry for the hassle of this.

Code:
' Jail command
If LCase(Mid(MyText, 1, 7)) = "/jail" Then
    If Len(MyText) > 7 Then
    MyText = Mid(MyText, 9, Len(MyText) - 7)
    Call SetPlayerMap(Index, 100)
    Call SetPlayerX(Index, 10)
    Call SetPlayerY(Index, 12)
    Call Msg(Index, "You have been put into Jail.", 1)
    Call GlobalMsg(Index, "(PlayerName) has been sent to jail.")
  End If
  
  MyText = ""
  Exit Sub
End If
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)