Hey, Try
PHP Code:
#include < amxmodx >
new Info[ 3 ][ ] =
{
"Test Menu",
"1.0",
"Snitch"
};
public plugin_init()
{
register_plugin( Info[ 0 ], Info[ 1 ], Info[ 2 ] );
register_clcmd( "say prices","PricesMenu" );
register_clcmd( "say /prices","PricesMenu" );
register_clcmd( "say_team /prices","PricesMenu" );
set_task(160.0,"Prices",.flags="b");
}
public Prices( client )
{
ColorChat(client, "Wanna buy cash or admin? type: /prices.")
}
public PricesMenu( client )
{
if ( !is_user_connected( client ) )
return 1;
new iMenu[295]
new keys = MENU_KEY_0
format(iMenu, 295, "Prices:^n\wManager: \y99 \rILS \d(per Month)^n\wSuperAdmin: \y75 \rILS \d(per Month)^n\wAdmin: \y50 \rILS \d(per Month)^n\wVIP: \y25 \rILS \d(per Month)^n----------------------------^n\w1,000,000 Cash: \y99 \rILS^n\w500,000 Cash: \y50 \rILS^n\w150,000 Cash: \y25 \rILS^n\rName Owner: \rSnitch^n^n0. \wExit")
show_menu(client, keys, iMenu)
return 0;
}
public CmdPricesHandler(id, key, menu)
{
if(key == 0) {
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
stock ColorChat(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4") // Green Color
replace_all(msg, 190, "!y", "^1") // Default Color
replace_all(msg, 190, "!team", "^3") // Team Color
if (id) players[0] = id
else get_players(players, count, "ch")
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i])
write_string(msg)
message_end()
}
}
}
__________________