HomePortalCalendarFAQSearchUsergroupsRegisterLog in

Share | 
 

 Adding an Admin Panel

Go down 
AuthorMessage
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: Adding an Admin Panel   Sat Nov 14, 2009 4:55 pm

P2D lacks an admin panel, this tutorial is meant to help you add one, an Admin Panel, this allows you to edit spells, items, etc. without having to type in /editblah.

First, download this admin panel:
Admin Panel

Now, add this under modInput, under Public Sub HandleKeyPresses(ByVal KeyAscii As Integer) BEFORE the Case Else:
Code:
                Case "/adminpanel"
                If GetPlayerAccess(MyIndex) = 0 Then
                Call PlayerMsg(MyIndex, "You must be an admin to do this!")
                Else
                frmAdmin.Show vbModal
                End If

Type in /adminpanel.

NOTE: I don't think Edit Map works, so avoid clicking it.

P.S. There you go Aksel.
Back to top Go down
Aksel
Admin
avatar

Innlegg : 283
Join date : 2009-06-20
Age : 22

PostSubject: Re: Adding an Admin Panel   Sat Nov 14, 2009 4:58 pm

Thanks, I'll check it out.

_________________
Back to top Go down
http://www.akselscape.com
Soul
Newb
Newb


Innlegg : 17
Join date : 2009-10-18

PostSubject: Re: Adding an Admin Panel   Sat Nov 14, 2009 7:15 pm

I tested it, it works, just Edit Map causes a spam error.

I tried adding Sad Script to Potato and it didn't go so well, still working on it.
Back to top Go down
Aksel
Admin
avatar

Innlegg : 283
Join date : 2009-06-20
Age : 22

PostSubject: Re: Adding an Admin Panel   Sun Nov 15, 2009 6:22 am

Cool, I'm working on the Admin panel now. Adding some more stuff =D

_________________
Back to top Go down
http://www.akselscape.com
Sponsored content




PostSubject: Re: Adding an Admin Panel   

Back to top Go down
 
Adding an Admin Panel
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Potato2D :: Game Development :: Source Coding-
Jump to: