Raised This Month: $ Target: $400
 0% 

What can I add to script to ignore the m3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-23-2009 , 09:31   Re: What can I add to script to ignore the m3
Reply With Quote #1

Edit: Revisedł

Let me know if it works as you requested or if you have any questions\bug reports.
Attached Files
File Type: sma Get Plugin or Get Source (restrictweapons.sma - 535 views - 11.5 KB)
__________________

Last edited by Bugsy; 05-24-2009 at 22:52.
Bugsy is offline
smgcz
Member
Join Date: Nov 2008
Old 05-23-2009 , 22:03   Re: What can I add to script to ignore the m3
Reply With Quote #2

Hi Bugsy, I put the plugin on the server all you can do is use a knife on a fresh map. Everyone had 0 deaths and 0 kills. When you would try to buy a gun it said the weapon was restricted and refunded your money.

this is the error message i got

"L 05/23/2009 - 22:00:16: [AMXX] Run time error 10 (plugin "restrictweapons.amxx") (native "message_begin") - debug not enabled!
L 05/23/2009 - 22:00:16: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes)."

Last edited by smgcz; 05-23-2009 at 22:07. Reason: added error message
smgcz is offline
smgcz
Member
Join Date: Nov 2008
Old 06-07-2009 , 16:15   Re: What can I add to script to ignore the m3
Reply With Quote #3

here is the current sma i am using. Scores are remembered even after several maps and bomb explosion still count for 3 points, but bomb defusals do not count. What can I change?

Thanks, smgcz

Last edited by smgcz; 07-28-2010 at 21:00.
smgcz is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-07-2009 , 16:18   Re: What can I add to script to ignore the m3
Reply With Quote #4

Please enable debug mode in plugins.ini so I can see where the error is coming from.
__________________
Bugsy is offline
smgcz
Member
Join Date: Nov 2008
Old 03-07-2010 , 19:38   restrict weapons
Reply With Quote #5

Hi bugsy here is what I changed in the sma before compiling it.

thank you,
smgcz
Attached Files
File Type: sma Get Plugin or Get Source (restrictweapons.sma - 404 views - 11.5 KB)
smgcz is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-08-2010 , 20:11   Re: What can I add to script to ignore the m3
Reply With Quote #6

Replaced nVault with CellTrie and did a few other non-functional changes. Let me know if you have any problems.
Attached Files
File Type: sma Get Plugin or Get Source (restrictweapons.sma - 396 views - 10.4 KB)
__________________

Last edited by Bugsy; 03-09-2010 at 00:11.
Bugsy is offline
smgcz
Member
Join Date: Nov 2008
Old 03-12-2010 , 20:45   Re: What can I add to script to ignore the m3
Reply With Quote #7

Ok thank you sir.
smgcz is offline
smgcz
Member
Join Date: Nov 2008
Old 03-12-2010 , 21:49   Re: What can I add to script to ignore the m3
Reply With Quote #8

here is what i changed before i recompiled.
Attached Files
File Type: sma Get Plugin or Get Source (restrictweapons.sma - 309 views - 10.4 KB)
smgcz is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-20-2010 , 22:34   Re: What can I add to script to ignore the m3
Reply With Quote #9

I did not get a chance to test this. Let me know if you have any problems.
Attached Files
File Type: sma Get Plugin or Get Source (restrictweapons.sma - 399 views - 11.0 KB)
__________________
Bugsy is offline
smgcz
Member
Join Date: Nov 2008
Old 03-21-2010 , 14:06   Re: What can I add to script to ignore the m3
Reply With Quote #10

I tried it out and it did not restrict weapons or remember scores if disconnected. I am wondering if there is something I need to turn on in plugins.ini and/or modules.ini.

Now with the celltrie option in the code should one of these be activated? Or is another plugin/module possibly causing an issue?

Here is what I have for both.

plugins.ini
Code:
; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx        ; admin base (required for any admin-related)
;admin_sql.amxx        ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx        ; basic admin console commands
adminhelp.amxx        ; help command for admin console commands
;adminslots.amxx        ; slot reservation
;multilingual.amxx    ; Multi-Lingual management

; Menus
menufront.amxx        ; front-end for admin menus
cmdmenu.amxx        ; command menu (speech, settings)
plmenu.amxx        ; players menu (kick, ban, client cmds.)
;telemenu.amxx        ; teleport menu (Fun Module required!)
mapsmenu.amxx        ; maps menu (vote, changelevel)
pluginmenu.amxx        ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx        ; console chat commands
antiflood.amxx        ; prevent clients from chat-flooding the server
;scrollmsg.amxx        ; displays a scrolling message
;imessage.amxx        ; displays information messages
adminvote.amxx        ; vote commands

; Map related
nextmap.amxx        ; displays next map in mapcycle
;mapchooser.amxx        ; allows to vote for next map
timeleft.amxx        ; displays time left on map

; Configuration
pausecfg.amxx        ; allows to pause and unpause some plugins
statscfg.amxx        ; allows to manage stats plugins via menu and commands

; Enable to use AMX Mod plugins
;amxmod_compat.amxx    ; AMX Mod backwards compatibility layer


; Custom - Add 3rd party plugins here
restmenu.amxx        ; restrict weapons menu (added 2/10/10)
statsx.amxx        ; stats on death or round end (CSX Module required!)   (added 2/10/10)
miscstats.amxx        ; bunch of events announcement for Counter-Strike   (added 2/10/10)
stats_logging.amxx        ; weapons stats logging (CSX Module required!)   (added 2/10/10)
restrictweapons.amxx
admin_spec_esp.amxx    ;(added 2/10/10)
amx_bank.amxx        ;(added 2/10/10)
amx_gore_ultimate.amxx    ;(added 2/11/10)
adminlisten.amxx        ;(added 2/27/10)
modules.ini
Code:
;;;
; To enable a module, remove the semi-colon (;) in front of its name.
; If it's not here, simply add it its name, one per line.
; You don't need to write the _amxx part or the file extension.
;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; SQL Modules usually need to be enabled manually ;;
;; You can have any number on at a time.  Use      ;;
;;  amx_sql_type in sql.cfg to specify the default ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;mysql
;sqlite

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Put third party modules below here.              ;;
;; You can just list their names, without the _amxx ;;
;;  or file extension.                              ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; These modules will be auto-detected and loaded   ;;
;;  as needed.  You do not need to enable them here ;;
;;  unless you have problems.                       ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

fun
engine
fakemeta
;geoip
;sockets
;regex
nvault
hamsandwich
cstrike
csx
Quote:
Originally Posted by Bugsy View Post
I did not get a chance to test this. Let me know if you have any problems.
smgcz is offline
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 02:26.


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