thanks, and another last question (i hope)
i searched for spawn in the tutorials, and found a tutorial on new rounds, spawn and stuff. and i wanna know, how can i give a weapon/item to a player upon spawn?
Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_clcmd("say /deagle", "weapon");
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)
}
public weapon(id)
{
if(is_user_alive(id))
{
strip_user_weapons(id)
give_item( id, "weapon_knife" );
give_item( id, "weapon_deagle" );
cs_set_user_bpammo(id, CSW_DEAGLE, 200);
set_user_health (id, 150);
client_print(id, print_chat, "You got a deagle and 150 hp");
}
}
public fwHamPlayerSpawnPost(iPlayer) {
if (is_user_alive(iPlayer)) {
{
give_item( id, "weapon_awp")
}
}
{
i tried this, but it dosen't work. i'm just guessing, but i think it doesn't work because it's not a ham command and it's in the ham section? am i right? and i could'ent find the command for giving a item with ham. thanks for your help guys
__________________