Raised This Month: $ Target: $400
 0% 

What is wrong here???


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blunted1
Senior Member
Join Date: Jun 2004
Old 07-12-2004 , 21:12  
Reply With Quote #7

Code:
/*AMX MOD X SCRIPT * *Batman Weapons * *Gives all rifles * *Version 1.1 * *Created by IseeOWNEDpeople AKA JoeCaprini */ #include <amxmodx> #include <amxmisc> #include <fun> public plugin_init(){ register_plugin("Batman Weapons","1.1","IseeOWNEDpeople") register_concmd("amx_batman","brucewayne",ADMIN_IMMUNITY,"1 = on 2 = off") register_cvar("amx_batman","1") } public brucewayne(id, level, cid){    if (!cmd_access(id,level,cid,2))       return PLUGIN_HANDLED    if (get_cvar_num("amx_batman")!=0){     give_item(id,"weapon_awp")     give_item(id,"weapon_m4a1")     give_item(id,"weapon_ak47")     give_item(id,"weapon_aug")     give_item(id,"weapon_sg552")     give_item(id,"weapon_mp5navy")     give_item(id,"weapon_xm1014")     give_item(id,"weapon_elite")     give_item(id,"weapon_deagle")     give_item(id,"weapon_flashbang")     give_item(id,"weapon_hegrenade")     give_item(id,"weapon_smokegrenade")    }    return PLUGIN_HANDLED }

There ya go, done properly.
[edit\]I should warn you though, this still will not work.
You have named the client command and the cvar as the same thing and I believe you will have to choose who you are doing this to [/edit]

The plugin written by you above (AWP War) will most likely be accessable by everyone and not just admins as you made the same mistake in that plugin.

If you cannot spot the difference on your own just ask and I will point it out (but give it a good decent shot, it shouldn't be too dificult)
Blunted1 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 14:38.


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