Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Jail Command Difficulty: 1/5 C&P (Now works with latest ver)
#1
So this is just an edit of DarkC's Kill command. Even still, I find it useful, so I decided to make it for MS4's newest version.

Here goes.

Client Side:

Find
Code:
CGetClasses = 1

And under it add:
Code:
CJailPlayer

Now find:
Code:
' // Mapper Admin Commands //

And above it add:
Code:
' Jail player
                Case "/jail"
                    If GetPlayerAccess(MyIndex) >= ADMIN_CREATOR Then
                        If UBound(Command) >= 1 Then
                            SendData CJailPlayer & SEP_CHAR & Command(1) & END_CHAR
                        End If
                    End If

Server Side:

Find:
Code:
CGetClasses = 1

Under it add:
Code:
CJailPlayer

Now find:
Code:
' :: Quit game packet ::

Under it add:
Code:
' ::::::::::::::::::::::::
        ' :: Jail Player Packet ::
        ' ::::::::::::::::::::::::
        Case CJailPlayer
        ' Prevent hacking...
        If GetPlayerAccess(Index) < ADMIN_CREATOR Then
            Call HackingAttempt(Index, "Admin Cloning")
        Exit Sub
    End If

n = FindPlayer(Parse(1))

    If n  Index Then
    If n > 0 Then
    'Sends messages out
        Call PlayerMsg(n, "You have been jailed by an admin.", BrightRed)
        Call GlobalMsg(GetPlayerName(n) & " has been jailed by an admin.", BrightRed)
    'Warp to Jail map (Change the coordinates to fit your needs)
        Call PlayerWarp(n, 5, 8, 8)
    Else
        Call PlayerMsg(Index, "Player is not online.", White)
    End If
    Else
        Call PlayerMsg(Index, "You cannot jail yourself!", White)
    End If

Exit Sub

And it's done! Tell me how I did, hope you like it.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)