AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Editing the Ban menu (changing the minutes per ban) (https://forums.alliedmods.net/showthread.php?t=13777)

BillytheCrayon 05-28-2005 18:07

Editing the Ban menu (changing the minutes per ban)
 
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.

WaZZeR++ 05-28-2005 18:11

2 Attachment(s)
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... :roll: (must stop saying that)

BillytheCrayon 05-28-2005 20:39

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

WaZZeR++ 05-29-2005 04:10

allready done that.... try the plmenuxp.sma in my previous post, dont forget to palce the plmenuxp.txt in you lang folder

BillytheCrayon 05-29-2005 21:43

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 06-05-2005 19:22

bump

WaZZeR++ 06-06-2005 04:07

1 Attachment(s)
sorry agen.....try this
sitched the wrong thing I think

EDIT: I have try it on my server, and everything seams to work now....


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

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