06-12-2007, 09:27 PM
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.
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