Raised This Month: $ Target: $400
 0% 

Need help with a little NS script...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 02-24-2005 , 12:09   Need help with a little NS script...
Reply With Quote #1

Hey what im trying to make is a plugin that gives a HMG to a player. When i try to compile this, it comes "argument mismatch" or something. Come somebody help me? Avalanche??? hehe Here it is:
Code:
#include <amxmodx> #include <amxmisc> #include <ns> public plugin_init() {     register_plugin("Weapon Giver (Marines)", "1.0", "XunTric")     register_concmd("amx_hmg", "hmg", ADMIN_KICK, "<name> Gives a player a HMG") } public hmg(id,level,cid) {         if (!cmd_access(id,level,cid,2))          return PLUGIN_HANDLED     new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,2)     if(!player)          return PLUGIN_HANDLED     new name[64];     get_user_name(player,name,63);     ns_give_item(player, WEAPON_HMG)     client_print(player, print_chat, "The admin gave you a HMG")              return PLUGIN_HANDLED }
XunTric 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 13:57.


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