'script made by sting If LCase(Mid(TextSay, 1, 5)) = "/jail" Then If Len(TextSay) > 6 Then If GetPlayerAccess(index) < 2 Then Call PlayerMsg(index, "You need be of a higher access to use this command!", 4) Exit Sub End If n = Mid(TextSay, 6, Len(TextSay) - 5) n = FindPlayer(n) If n <> index Then If n > 0 Then
Call GlobalMsg(GetPlayerName(n) & " has been sent to jail by " & GETplayername(index) & ".", 9) Call AddLog(GetPlayerName(index) & " has warped " & GetPlayerName(n) & " to self, map #" & GetPlayerMap(index) & ".", ADMIN_LOG) Else Call PlayerMsg(index, "Player is not online.", 15) End If Else Call PlayerMsg(index, "You cannot jail yourself to yourself!", 15) End If End If Exit Sub End If'script made by sting
Case "/jail" If GetPlayerAccess(Index) < 1 Then Call PlayerMsg(Index, "You don't have the appropriate access level to use this command.", BRIGHTRED) Exit Sub End If If UBound(TextSay) < 1 Then Call PlayerMsg(Index, "The command is: " & TextSay(0) & " player", BRIGHTRED) Exit Sub End If If GetPlayerName(Index) = TextSay(1) Then Call PlayerMsg(Index, "You can't warp yourself to yourself.", BRIGHTRED) Exit Sub End If Target = FindPlayer(TextSay(1)) If Target < 1 Then Call PlayerMsg(Index, "The player is offline or doesn't exist.", WHITE) Exit Sub End If Call PlayerWarp(Target, 50, 17, 14) Exit Sub
"Let's put a smile on that face!"