Raised This Month: $ Target: $400
 0% 

knife mod doesnt work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Crusher918
Senior Member
Join Date: Feb 2007
Location: New York
Old 02-21-2007 , 21:42   knife mod doesnt work
Reply With Quote #1

hi downloaded a premade script for another amx site and im having some problems it says this:


] amx_knives
Usage: amx_knives <1|0> - knives only mode
] amx_knives 0
L 02/21/2007 - 21:13:02: This usage of the native pause() has been deprecated!
L 02/21/2007 - 21:13:02: [AMXX] Run time error 10 (plugin "knife_arena.amx") (native "pause") - debug not enabled!
L 02/21/2007 - 21:13:02: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

well the script looks like this:

#include <amxmod>
#include <amxmisc>
new bool:KnifeEnabled=false
public amx_enableknife(id,level,cid) {
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new arg1[4]
read_argv(1,arg1,3)

if (equal(arg1,"1")||equali(arg1,"on")){
KnifeEnabled = true
unpause("b","switchweapon")
}
else if (equal(arg1,"0")||equali(arg1,"off")){
KnifeEnabled = false
pause("b","switchweapon")
}
else {
console_print(id,"Knives Only Mode is %s",KnifeEnabled ? "enabled" : "disabled")
return PLUGIN_HANDLED
}
console_print(id,"Knives Only Mode %s",KnifeEnabled ? "enabled" : "disabled")
client_print(0,print_center,"Knives Only Mode Has Been %s!",KnifeEnabled ? "Enabled" : "Disabled")

engclient_cmd(0,"weapon_knife")

set_hudmessage(0, 100, 0, 0.05, 0.65, 2, 0.02, 10.0, 0.01, 0.1, 2)
show_hudmessage(0,KnifeEnabled ? "Seulement les coutos sont autorises !" : "Toutes les armes sont autorisees !" )
return PLUGIN_HANDLED
}
public switchweapon(id)
{
engclient_cmd(id,"weapon_knife")
}
public plugin_init() {
register_plugin("Knife Arena","0.9","tcquest78")
register_event("CurWeapon","switchweapon","be ","1=1","2!29")
register_concmd("amx_knives","amx_enableknife ",ADMIN_LEVEL_B,"<1|0> - knives only mode")
pause("b","switchweapon")
return PLUGIN_CONTINUE
}

someone help me please

thanks in advance
Crusher918 is offline
 



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 00:37.


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