Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:28:01 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by 314piwm
[Today at 10:21:04 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Site Author : Topic: /jail playername command  (Read 4731 times)
0 Members and 1 Guest are viewing this topic.
February 27, 2007, 01:39:23 PM
Veteran
Active Member
*
User No : 850
Posts: 423
  • 8 credits
  • View Inventory
  • Send Money To Sting
  • Seriously...
    • View Profile
    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!
    To add this script put it in
    Server\Scripts\Events\Commands.ess

    If your using 2.7/2.8 just put it in the bottom of your main.txt
    « Last Edit: August 30, 2010, 06:26:57 PM by Sting » Logged

    ...ive got my swim trunks and my flippy floppys you at kinkos straight flippin copies...
    February 27, 2007, 01:56:19 PM
    Active Member
    ***
    User No : 2221
    Posts: 382
  • 24 credits
  • View Inventory
  • Send Money To Ne0n
  • Location : Canada
    • View Profile
    • WWW
    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
    Logged

    DanilO Network™ presents Rebelion Online - The Last Survivor

    Unique PVP system ever seen, Incredible effects and Features..




    Take the Magic: The Gathering 'What Color Are You?' Quiz.
    April 19, 2010, 11:01:06 AM
    Newb
    *
    User No : 18543
    Posts: 1
  • 0 credits
  • View Inventory
  • Send Money To Ananas
    • View Profile
    I also made a Jail command;

    Case "/jail"
             If GetPlayerAccess(Index) < ADMIN_MONITOR 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
          
             Target = FindPlayer(TextSay(1))
             
             If Target < 1 Then
                Call PlayerMsg(Index, "The player is offline or doesn't exist.", WHITE)
                
                Exit Sub
             End If
             
                            ' The coördinates of the jail map.
             Call PlayerWarp(Target, 30, 25, 2)
             Call GlobalMsg(GetPlayerName(Target) & " has been jailed. ", BRIGHTRED)
             
             Exit Sub


    Sorry if I posted anything wrong, I'd I'm new and stuff ;P.
    Logged
    April 22, 2010, 03:29:14 PM
    I Define Pwnage
    Advanced Member
    ****
    User No : 16371
    Posts: 568
  • 50 credits
  • View Inventory
  • Send Money To Tompwnage™
  • Location : Guess ;)
    Natural Bodybuilder
    • View Profile
    Umm where do I put this, I put it at the bottom of main.txt and it doesn't work =x
    Sorry I am still kindov a noob atm lol
    Logged

    Best Band Ever:
    Spoiler for Hidden:

    http://www.facebook.com/tompwnage

    Devo is a Beast.
    May 23, 2010, 11:22:26 AM
    Member
    **
    User No : 18556
    Posts: 50
  • 0 credits
  • View Inventory
  • Send Money To [ThE[JoKeR]X]
  • Location : Far far away...
    • View Profile
    Code: [Select]
    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

    I have this script in: Server\Scripts\Events\Commands.ess
    Logged

    Quote from: Joker
    "Let's put a smile on that face!"
    May 26, 2010, 08:51:30 AM
    A Life Lived (STRAIGHT) Is A Life Well Spent
    Member
    **
    User No : 9797
    Posts: 76
  • 0 credits
  • View Inventory
  • Send Money To escfoe2
  • Location : I'm home
    • View Profile
    Townpwnage: 
        Eclipse Stable - script goes in Server\Scripts\Events\Commands.ess
        Eclipse 2.8, 2.7 or less - Server\Scripts\Main.txt: Ctrl + F to search for Sub Commands(Index)
     
    Theres your placements
    Logged

    If you've ever put normal (everyday) situations into sadscript to figure them out...  You might need attention..  or maybe you need love or something else hmmm...
    If GetPlayerNeedsAttention(Index) = True Then
        Call PlayerMsg(Index, "Your problem is you need attention", 14)
        Call SetPlayerAttention(Index, GetPlayerMaxAttention(Index))
    Else If GetPlayerNeedsLove(Index) = True Then
        Call PlayerMsg(Index, "All you need is love!", 15)
        Call SetPlayerLove(Index, GetPlayerMaxLove(Index))
    End If
    August 30, 2010, 06:24:31 PM
    Veteran
    Active Member
    *
    User No : 850
    Posts: 423
  • 8 credits
  • View Inventory
  • Send Money To Sting
  • Seriously...
    • View Profile
    wow people still use this script I made 3 years ago? I edited the placement for u guys
    Logged

    ...ive got my swim trunks and my flippy floppys you at kinkos straight flippin copies...
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.266 seconds with 30 queries.