EDIT : Mira aqui te dejo un code que hice recien , ahora tu a este le pones el menu de armas o de lo que quieras.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#define PLUGIN "Monedas"
#define VERSION "1.0"
#define AUTHOR "xGreat"
#define Prefix "[ASD]"
new Moneda[33]
new g_MsgSync
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
g_MsgSync = CreateHudSyncObj()
RegisterHam(Ham_Killed, "player", "ham_killed", 1)
}
public client_putinserver(id)
{
Moneda[id] = 0
set_task(2.0, "Hud_Moneda", id+100, _, _, "b")
}
public Hud_Moneda(id)
{
set_hudmessage(255, 127, 0, -1.0, 0.91, 0, 6.0, 1.0)
ShowSyncHudMsg(id, g_MsgSync, "Tienes [%d] Monedas", Moneda[id])
}
public ham_killed(victim, attacker)
{
if(cs_get_user_team(attacker) == CS_TEAM_CT)
{
Moneda[attacker] += 1 // Si es CT Gana 1 moneda
client_print(attacker, print_chat, "%s Ganas 1 moneda", Prefix)
}
if(cs_get_user_team(attacker) == CS_TEAM_T)
{
Moneda[attacker] += 3 // Si es Terrorista gana 3 monedas
client_print(attacker, print_chat, "%s Ganas 3 monedas", Prefix)
}
Moneda[victim] -= 1 // Si lo matan o se mata pierde 1
client_print(victim, print_chat, "%s Pierdes 1 moneda por morir", Prefix)
}
Pruebalo y avisa.
Saludos xGreat
__________________