Hi
I would like a plugin that gives players a weapon + knife, vesthelm and ammo.
For exemple, for the ak47, I have this one :
Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#include <fakemeta>
public plugin_init()
{
register_plugin("Drop arme: Ak47", "1.0", "MiniB")
RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
}
public ham_PlayerSpawn_Post(id)
{
if (is_user_alive(id))
{
strip_user_weapons(id)
set_pdata_int(id, 116, 0)
give_item(id, "weapon_knife")
give_item(id, "weapon_ak47")
cs_set_user_bpammo(id, CSW_AK47, 90)
cs_set_user_armor(id, 100, CS_ARMOR_VESTHELM)
}
}
But I have a problem with it
For exemple, if you choose the plugin that give usp on spawn, when you are CT, the plugin strip off your usp without giving another one. When the weapon of the plugin and the weapon at spawn are the same, the player have nothing
Maybe a code modification could be made to solve this ?