I think i know what you mean, i made this a while back. It could give an idea of how to do it.
PHP Code:
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#include <cstrike>
new bool:GiftUsed[33]
public plugin_init() {
register_plugin("Welcome Gift", "0.3", "Ex1ne")
RegisterHam(Ham_Spawn, "player", "Spawn", 1)
}
public Spawn(id) {
if(GiftUsed[id] == true) {
return PLUGIN_HANDLED
}
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 35)
GiftUsed[id] = true
return PLUGIN_HANDLED
}
__________________