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:35  
Reply With Quote #8

Here is your code completily finished for you.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init(){ register_plugin("Batman Weapons","1.1","IseeOWNEDpeople") register_concmd("amx_batman","admin_batman",ADMIN_IMMUNITY) register_cvar("amx_batmanon","1") } public admin_batman(id,level,cid){    if (!cmd_access(id,level,cid,2))       return PLUGIN_HANDLED    new arg[32], name2[32]    get_user_name(id,name2,31)    read_argv(1,arg,31)        if (arg[0]=='@'){       new players[32], inum       get_players(players,inum,"ae",arg[1])       if (inum==0){          console_print(id,"No clients in such team")          return PLUGIN_HANDLED       }       for(new a=0;a<inum;++a)          brucewayne(players[a])      }    else {       new player = cmd_target(id,arg,2)       if (!player) return PLUGIN_HANDLED       brucewayne(player)       new name[32]       get_user_name(player,name,31)      }    return PLUGIN_HANDLED   } public brucewayne(id){    if (get_cvar_num("amx_batmanon")!=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 }

Everything works.
Command: amx_batman <authid, nick, @team or #userid>
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