Raised This Month: $ Target: $400
 0% 

amx_weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
onfirenburnin420
Senior Member
Join Date: Jan 2005
Old 04-08-2005 , 19:21   amx_weapons
Reply With Quote #1

Here Is My Code I Want Only Admins With ADMIN_LEVEL_A To Be Able To Use The Commands... What Do I Do?
Code:
#include <amxmodx> #include <fun> public plugin_init() {     register_plugin("Weapon","1.0","Fire")     register_cvar("amx_weapon","1")     register_clcmd("say /m4","m4a1") } public m4a1(id) { if (get_cvar_num("amx_weapon") !=0) {     give_item(id,"weapon_m4a1")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato") } return PLUGIN_HANDLED }
Also Isnt There A Way To Shorten This Up?:
Code:
    give_item(id,"weapon_m4a1")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")     give_item(id,"ammo_556nato")
__________________
onfirenburnin420 is offline
Send a message via AIM to onfirenburnin420
 


Thread Tools
Display Modes

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 09:55.


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