18-09-2008, 07:26 PM
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
And under it add:
Now find:
And above it add:
Server Side:
Find:
Under it add:
Now find:
Under it add:
And it's done! Tell me how I did, hope you like it.
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.