Raised This Month: $ Target: $400
 0% 

Scripting Question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FoX Rider
Member
Join Date: Feb 2005
Location: AK
Old 02-22-2005 , 19:30  
Reply With Quote #8

Ok heres my updated script..

Code:
#include <amxmodx> 
#include <cstrike>
#include <fun> 

public plugin_init() { 
   register_plugin("Give-Weapon","1.00","FoX") 
   register_clcmd("amx_giveweapon","giveweapon",ADMIN_LEVEL_A,"- Gives client a weapon") 
   register_clcmd("amx_giveammo","giveammo",ADMIN_LEVEL_A,"- Gives client ammo") 
} 
public giveweapon(id) { 
   give_item(id,"weapon_m4a1"); 
   return PLUGIN_HANDLED 
} 
    
public giveammo(id) { 
   cs_set_weapon_ammo(id,90) 
   return PLUGIN_CONTINUE 
}
Yet when I go in and test it, it says "Unknown command: amx_giveammo"
__________________
Ride for fox..Die for fox.
FoX Rider 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:00.


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