Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My Code Not Working...
#14
So then would this work? If not, mind explaining why?

Code:
' Jail command
If LCase(Mid(MyText, 1, 7)) = "/jail" Then
    If Len(MyText) > 7 Then
    MyText = Mid(MyText, 9, Len(MyText) - 7)
    Call SendPlayerMap(Index, 100)
    Call SendPlayerX(Index, 10)
    Call SendPlayerY(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: 1 Guest(s)