Eclipse
January 05, 2009, 09:44:56 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
scripts? by MrMiguu™
Today at 09:44:14 PM

Party system : is it possible? by MrMiguu™
Today at 09:43:48 PM

Actual Map for the continents by FS:CG Admin[Shadowwulf]
Today at 09:43:07 PM

Which version of eclipse do you like most for sadscripting? by Kainan54
Today at 09:42:38 PM

Disparity Recruiting by Peter
Today at 09:42:13 PM

Count to 1,000,000! by The Roujo
Today at 09:41:11 PM

Lostica [Project Revamp] by MrMiguu™
Today at 09:39:25 PM

My future game's mainmenu. by Peter
Today at 09:37:43 PM

3 Free GUIs by Peter
Today at 09:36:53 PM

Sylerean Online Alpha 1.2 Released by HawkStorm95
Today at 09:35:04 PM

Members Online +-
9 Guests, 22 Users
Simius Cruentus,
waffletamer,
shakadaran,
Peter,
Kreator,
MrMiguu™,
Amperglyph,
Sablefalcon,
Mitus,
The Roujo,
FS:CG Admin[Shadowwulf],
HawkStorm95,
Kainan54,
‪‫‬‭‮‪‫Kusy,
kira423,
Niko,
‪‫‬‭‮‪‫‬‭The Admiral,
hammer,
Ninja-Tech,
bobo1172,
Ambard,
sleisysoft
Pages: [1]
  Print  
Author Topic: /jail playername command  (Read 1667 times)
0 Members and 1 Guest are viewing this topic.
Sting
Veteran
Active Member
*
Offline Offline

Posts: 406


Yup thats me --^


View Profile Email
« on: February 27, 2007, 01:39:23 PM »

Code: [Select]

'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 PlayerWarp(n, 1, 5, 5)
Code: [Select]
                    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

that warp is the jail location u kno the part that is left out of code (it still must be included i just didnt put it in code so people could see it easyer)

call player warp(n, map num, x, y)

edit it so it works for u!

EDIT: my bad there was a bug fixed it now tho
Ne0n
๑RBO Developer๑
Developer
Active Member
*
Offline Offline

Posts: 308



View Profile WWW Email
« Reply #1 on: February 27, 2007, 01:56:19 PM »

I was making a /jail command lol.. nice, the jails i have are 3 so i'd just add a random to jail on different cells.. thanks
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 1.476 seconds with 32 queries.