entonses debes cambiar el titulo del thread y poner QUIERO TODO EN BANDEJA POR QUE COPIE Y PEGUE Y NO ME SIRVIO...
PHP Code:
#include < amxmodx >
#include < amxmisc >
static const Plugin [ ] = "a"
static const Version [ ] = "1"
static const Author [ ] = "b"
enum _:g_datos
{
Logros[ 33 ],
Requisitos,
Descripcion[40],
Experiencia,
Niveles
}
new const g_logros[ ][ g_datos ] =
{
{ "Asesino en serie", 5, "Mata a 5 personas en una ronda", 200, 0 },
{ "Soy inocente", 5, "Dejate matar 5 veces de terrorista", 500, 1 },
{ "Hijo del millonario", 3, "Compra 3 items en la misma ronda", 700, 0 },
{ "Soy de confianza", 3, "Mata 3 terroristas con cuchillo", 1500, 3 },
{ "En mi mundo", 10, "Sobrevive 10 rondas sin caerte al piso", 6000, 5 },
{ "Gladiador", 50, "Mata a 50 terroristas", 15000, 8 },
{ "Hijos de puta :B", 3, "Mata 3 veces a un staff de la comunidad", 50000, 10 }
}
public plugin_init( )
{
register_plugin( Plugin, Version, Author );
register_clcmd("say /test", "cmdShop")
}
public cmdShop(id)
{
new menu1 = menu_create("\rMenu de Misiones y Logros!^n^n", "handler_Logros")
new num[3]
for(new i = 0; i < sizeof g_logros; i++)
{
new len[400]
num_to_str(i, num, 2)
formatex(len, charsmax(len), "\w%s \y[Disponible]", g_logros[i][Logros], g_logros[i][Descripcion])
menu_additem(menu1, len, num)
}
menu_setprop(menu1, MPROP_BACKNAME, "\yAtras")
menu_setprop(menu1, MPROP_NEXTNAME, "\ySiguiente")
menu_setprop(menu1, MPROP_EXITNAME, "\ySalir")
menu_display(id, menu1, 0)
}
public handler_Logros(id, menu1, item)
{
if(item == MENU_EXIT)
{
menu_destroy(menu1)
return PLUGIN_HANDLED
}
// Player disconnected?
if (!is_user_alive(id)) return PLUGIN_HANDLED;
new data[6], iName[64]
new access, callback
menu_item_getinfo(menu1, item, access, data,5, iName, 63, callback)
new key = str_to_num(data);
switch (key)
{
case 1: client_print(id, print_chat, "hola, amigos quiero todo en Bandeja")
}
menu_destroy(menu1)
return PLUGIN_CONTINUE;
}