| closeddod_nadenblade |
| Started by Garion on 09-20-2006, 12:08 AM |
Threads: 9
Joined: Nov 2005
Ok, I can't seem to find it here, so I guess ztoolz never posted it on the new forums but does anyone have the sma for the dod_nadenblade plugin?
Threads: 57
Joined: Oct 2005
You can do it with Dod Custom Supply (Developers Plugins Section)
Threads: 11
Joined: Oct 2005
Okay, I can't seem to find my SMA - but I was the maker of this plugin. Here is the AMXX, I'll post the SMA if I find it soon.
Threads: 11
Joined: Oct 2005
ok i've searched my 3 HD's and cannot find it, I only found the amxx because it was on my server. Zor may have it, or diamond-optic.. Not sure, but I'd like to get ahold of it again too because I was going to use it for refrence on another plugin I am thinking about making.rnrnCya
Threads: 9
Joined: Nov 2005
ok, if you find it or someone else has it that would be great cuz I still have the amxx on my server just wanted to re compile it when I compile the rest of my plugins into 1.76
Threads: 103
Joined: May 2005
sorry i dont have it :(
Threads: 0
Joined: Sep 2006
I have the sma for this plugin pm me and i will pass it along.
Threads: 9
Joined: Nov 2005
why not just post it if you have it?
Threads: 0
Joined: Sep 2006
Sorry for the delay here you go.....nn
n//n// CVARs (for amxx.cfg):n// =====================n//n// amx_nadenblade <1/0> = enable/disable pluginn//n// nnb_nades <amount> = sets amount of grenades to given//n//n// NOTES:n// ======n//n// - This plugin is based off of the Sniper Blade mod by FireStorm,n// few things were changed for this to be Nade N Blade..nnnew g_newplayer[33]nn#include <amxmodx>n#include <amxmisc>n#include <engine>n#include <fun>n#include <dodfun>n#include <dodx>nnpublic plugin_init() {n register_plugin("Nade N Blade","1.0","zH-[zTooLz]")n register_cvar("dod_nadenblade","0")n set_cvar_num("dod_nadenblade",0)n register_concmd("amx_nadenblade","admin_nadenblade",ADMIN_KICK,"<enable/disable NadeNBlade Mode>")n register_event("ResetHUD","respawn","be")n register_event("CurWeapon","check_nadenblade","b","1=1")n register_cvar("nnb_nades","6")n}nnpublic plugin_modules(){n require_module("engine")n require_module("fun")n require_module("dodx")n require_module("dodfun")n}nnpublic client_authorized(id){n g_newplayer[id] = 1n}nnpublic check_nadenblade(id){n if(get_cvar_num("dod_nadenblade") == 0){n return PLUGIN_CONTINUEn }n if(get_cvar_num("dod_nadenblade") == 1){n new ammo, clip, zGun = dod_get_user_weapon(id,clip,ammo)n if(zGun != DODW_AMERKNIFE && zGun != DODW_BRITKNIFE && zGun != DODW_SPADE && zGun != DODW_GERKNIFE && zGun != DODW_STICKGRENADE && zGun != DODW_HANDGRENADE){n set_task(0.1,"give_nadenblade",id)n return PLUGIN_CONTINUEn }n }n return PLUGIN_CONTINUEn}nnpublic admin_nadenblade(id,level,cid){n if (!cmd_access(id,level,cid,2))n return PLUGIN_HANDLEDn new nadenblade_s[2]n read_argv(1,nadenblade_s,2)n new nadenblade = str_to_num(nadenblade_s)nn if(nadenblade == 1) {n if (get_cvar_num("dod_nadenblade") == 1){n console_print(id,"[AMXX] Nade N Blade Mode is already running.....")n client_print(id,print_chat,"[AMXX] Nade N Blade Mode is already running.....")n }n else if (get_cvar_num("dod_nadenblade") == 0){n set_cvar_num("dod_nadenblade",1)n new plist[32],pnumn get_players(plist, pnum)n for(new i=0; i<pnum; i++){n g_newplayer[plist[i]] = 1n if(is_user_alive(plist[i]) == 1){n dod_user_kill(plist[i])n }n }n set_hudmessage(0, 255, 0, -1.0, -1.0, 0, 6.0, 11.0, 0.1, 0.2, 4)n show_hudmessage(0,"Nade N Blade Mode Enabled!")n console_print(id,"Nade N Blade Mode Enabled!")n client_print(id,print_chat,"[AMXX] Nade N Blade Mode Enabled!")n }n }nn else if(nadenblade == 0) {n if (get_cvar_num("dod_nadenblade") == 0){n console_print(id,"[AMXX] Nade N Blade Mode is already disabled.....")n client_print(id,print_chat,"[AMXX] Nade N Blade Mode is already disabled.....")n }n else if (get_cvar_num("dod_nadenblade") == 1){n set_cvar_num("dod_nadenblade",0)n new plist[32],pnumn get_players(plist, pnum)n for(new i=0; i<pnum; i++){n if(is_user_alive(plist[i]) == 1){n dod_user_kill(plist[i])n }n }n set_hudmessage(255, 0, 0, -1.0, -1.0, 0, 6.0, 11.0, 0.1, 0.2, 4)n show_hudmessage(0,"Nade N Blade Mode Disabled!")n console_print(id,"Nade N Blade Mode Disabled!")n client_print(id,print_chat,"[AMXX] Nade N Blade Mode Disabled!")n }n }n return PLUGIN_HANDLEDn}nnpublic announce(id){n if(g_newplayer[id] == 1){n set_hudmessage(255, 153, 1, -1.0, -1.0, 0, 6.0, 10.0, 0.1, 0.2, 4)n show_hudmessage(id,"Nade N Blade Mode is Enabled!^nGrenades and blades only!!")n g_newplayer[id] = 0n }n}nnpublic respawn(id){n if (get_cvar_num("dod_nadenblade") == 1){n set_task(0.1,"give_nadenblade",id)n announce(id)n }n return PLUGIN_CONTINUEn}nnpublic give_nadenblade(id){n strip_user_weapons(id)n new ammo, clip, zGun = dod_get_user_weapon(id,clip,ammo)n new zGrenAmmo = get_cvar_num("nnb_nades")n new zWeapon[24]n new zWeapon2[24]n new gunnameA[32] = "spade"n new gunnameB[32] = "gerknife"n new gunnameC[32] = "amerknife"n new gunnameD[32] = "stickgrenade"n new gunnameE[32] = "handgrenade"n if(get_user_team(id) == 2){n if(dod_get_map_info(MI_AXIS_PARAS) == 1){n format(zWeapon,23,"weapon_%s",gunnameB)n format(zWeapon2,23,"weapon_%s",gunnameD)n give_item(id,zWeapon)n give_item(id,zWeapon2)n dod_set_user_ammo(id,DODW_STICKGRENADE,zGrenAmmo)n }n else if(dod_get_map_info(MI_AXIS_PARAS) == 0){n format(zWeapon,23,"weapon_%s",gunnameA)n format(zWeapon2,23,"weapon_%s",gunnameD)n give_item(id,zWeapon)n give_item(id,zWeapon2)n dod_set_user_ammo(id,DODW_STICKGRENADE,zGrenAmmo)n }n }n else if(get_user_team(id) == 1){n if(dod_get_map_info(MI_ALLIES_TEAM) == 1){n format(zWeapon,23,"weapon_%s",gunnameC)n format(zWeapon2,23,"weapon_%s",gunnameE)n give_item(id,zWeapon)n give_item(id,zWeapon2)n dod_set_user_ammo(id,DODW_HANDGRENADE,zGrenAmmo)n }n else if(dod_get_map_info(MI_ALLIES_TEAM) == 0){n format(zWeapon,23,"weapon_%s",gunnameC)n format(zWeapon2,23,"weapon_%s",gunnameE)n give_item(id,zWeapon)n give_item(id,zWeapon2)n dod_set_user_ammo(id,DODW_HANDGRENADE,zGrenAmmo)n }n }n}Threads: 9
Joined: Nov 2005
thanks, now i can upgrade my server and compile all plugins again
Threads: 11
Joined: Oct 2005
Hey everyone,rnrnI'd like to thank Outlaw for putting that up. Now there is one problem with this mod if anyone can fix it - I can't seem to find out how to allow it to prime nades.. Thats something I'd definently like to be able to do if anyone can try to fix thatrnrnThanks!
Threads: 9
Joined: Nov 2005
I got some errors compiling this:nn
//// dod_nadenblade.sman// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<1> : error 055: start of function body without function headern// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<16> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<17> : error 001: expected toker: ";", but found ""n// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<19> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<20> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<21> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<22> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<23> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<24> : error 038: extra characters on linen// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<25> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<26> : error 029: invalid expression, assumed zeron// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<36> : error 29: invalid expression, assumed zeron// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<43> : error 029: invalid expression, assumed zeron// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<47> : error 029: invalid expression, assumed zeron// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<48> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<49> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<51> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<52> : error 001: expected token: ";", but found ""n// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<53> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<55> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<58> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<61> : error 029: invalid expression, asummed zeron// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<62> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<63> : error 010: invalid function or declarationn// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<64> : error 001: expected token: ";", but found ""n// E:AMX1.76addonsamxmodxscriptingdod_nadenblade.sma<66> : error 001: expected token: ";", but found ""n//n// Compilation aborted.n// 26 Errors.n// Could not locate output file E:AMX1.76amxmodxscriptingcompileddod_nadenblade.amx <compile failed>.n//n// Compilation Time: 0.45 secn// ----------------------------------
