06-12-2007, 10:47 PM
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