You forget (i think) to include fun. (
http://www.amxmodx.org/funcwiki.php?go=func&id=120 )
Quote:
give_item
[ Main ] [ Fun ] [ fun.inc ]
[ comments ]
|
Try this :
Code:
#include < amxmodx >
#include < fun >
public plugin_init( ) {
register_plugin( "Test" , "1.0" , "Aooka" );
register_clcmd( "say /give" , "CmdGive" );
}
public CmdGive( id ) {
if( is_user_alive( id ) ) {
give_item( id , "weapon_mp5navy" );
give_item( id , "weapon_aug" );
}
else {
client_print( id , print_center , "You must be alive !" );
}
}
Why do you use Ham_Spawn ? It's not when a player spawn but when the player type a cmd.
If you whant to set bullet in yours weapons take a look here :
http://www.amxmodx.org/funcwiki.php?go=func&id=186
__________________