Raised This Month: $ Target: $400
 0% 

Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
capndurk
Senior Member
Join Date: Feb 2006
Old 03-31-2006 , 00:39  
Reply With Quote #1

Change this:

Code:
if(!cmd_access(id,level,cid,2)

to:

Code:
if(!cmd_access(id,level,cid,2))

(It will fix your ) error.)

Code:
register_concmd("amx_weapons","give_items",ADMIN_KICK,"- Gives you some weapons")

ADMIN_KICK doesn't need quotes, it's a constant.

Also:

Take out this
Code:
client_print(id,print_chat,"[AMXX] No access!")

cmd_access command already does that for you ;)
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
CodeBreaker
Junior Member
Join Date: Mar 2006
Old 03-31-2006 , 00:41  
Reply With Quote #2

Woo Hoo, Got it to work, thanks.

Finaly code

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "Client Gunz" #define VERSION "1.0" #define AUTHOR "CodeBreaker" public give_items(id,level,cid){     if(!cmd_access(id,level,cid,2))  {         client_print(id,print_chat,"[AMXX] No access!")         return PLUGIN_HANDLED     }     give_item(id,"weapon_m4a1")     give_item(id,"weapon_m4a1")     give_item(id,"weapon_m4a1")     give_item(id,"weapon_m4a1")     client_print(id,print_center,"[AMXX] Weapon Added!")     return PLUGIN_HANDLED }     public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("amx_weapons","give_items",ADMIN_KICK," : Gives you some weapons") }
__________________
Code:
If you like hawt sawce, paste this into your sig.
CodeBreaker is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-31-2006 , 00:41  
Reply With Quote #3

np
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
Reply



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


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