ok, thanks. and is there like a page where i can see how to give ammo? this dosen't work (for a deagle)
Code:
cs_set_user_bpammo( id, CSW_DEAGLE, 200);
edit: and how do you use client_print? i don't understand. i just made a silly /deagle plugin. and i want it to print "you got a deagle and 150hp"
Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_clcmd("say /deagle", "weapon");
}
public weapon(id)
{
if(is_user_alive(id))
strip_user_weapons(id)
give_item( id, "weapon_deagle" );
set_user_health (id, 150)
give_item( id, "weapon_knife" );
client_print ("
and why when i compile it i get 2 errors? and whats the correct command for giving ammo? and what command is it when they respawn you give something?
__________________