Raised This Month: $ Target: $400
 0% 

Editing the Ban menu (changing the minutes per ban)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BillytheCrayon
New Member
Join Date: May 2005
Old 05-28-2005 , 18:07   Editing the Ban menu (changing the minutes per ban)
Reply With Quote #1

I was wanting to make one small change to the ban menu, but I don't know what file to edit or where to look.

Right now, it's set up so that you can ban people for like 5 minutes, an hour, and permanently. I was wanting to put in the options to ban for a day, a week, and a month.
BillytheCrayon is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-28-2005 , 18:11  
Reply With Quote #2

from line 91 in plmenu.sma

Code:
      switch(g_menuOption[id]){       case 0: g_menuSettings[id] = 0       case 1: g_menuSettings[id] = 5       case 2: g_menuSettings[id] = 60

but tell me waht time you want, so can I make the necesary changing...
---------------------EDIT-------------
so, now i have add day, week and month. Language support for english and swedish, you need to translate by yourself if you want another language...

I havnt try it jet, but it should work... (must stop saying that)
Attached Files
File Type: txt plmenuxp.txt (214 Bytes, 74 views)
File Type: sma Get Plugin or Get Source (plmenuxp.sma - 573 views - 20.5 KB)
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
BillytheCrayon
New Member
Join Date: May 2005
Old 05-28-2005 , 20:39  
Reply With Quote #3

I'm wanting the following changes:

case 0: g_menuSettings[id] = 0
case 1: g_menuSettings[id] = 60
case 2: g_menuSettings[id] = 1440 ;this would be one day
case 3: g_menuSettings[id] = 10080 ;this would be one week
case 4: g_menuSettings[id] = 43200 ;this would be one month
BillytheCrayon is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 05-29-2005 , 04:10  
Reply With Quote #4

allready done that.... try the plmenuxp.sma in my previous post, dont forget to palce the plmenuxp.txt in you lang folder
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
BillytheCrayon
New Member
Join Date: May 2005
Old 05-29-2005 , 21:43  
Reply With Quote #5

well, I'm getting the options to ban for a month, and permanent ban, and after those two, is four that are completely blank. It shows the numbers for the players, the 0 to exit, but option 8 is not there, but you can still scroll through the options by pressing 8. it just doesn't show what is selected for how long the ban is for.
BillytheCrayon is offline
BillytheCrayon
New Member
Join Date: May 2005
Old 06-05-2005 , 19:22  
Reply With Quote #6

bump
BillytheCrayon is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-06-2005 , 04:07  
Reply With Quote #7

sorry agen.....try this
sitched the wrong thing I think

EDIT: I have try it on my server, and everything seams to work now....
Attached Files
File Type: amx plmenuxp.amx (19.5 KB, 77 views)
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode