Post by xizzys on Jun 25, 2016 12:20:45 GMT
Hello ok ?
buy.sma (1.74 KB)
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
new const PREFIX[] = "[AMXX]"
new const CONTACT[] = "CONTACT 1 (Owner1 Name)"
new const CONTACT2[] = "CONTACt 2 (Owner2 Name)"
new const VIP[] = "PRIX VIP"
new const MINIADMIN[] = "PRIX MINI"
new const SUPERADMIN[] = "PRIX SUPER"
new const FB[] = "Fb.com/FB1"
new const FB2[] = "Fb.com/FB1"
public plugin_init()
{
register_plugin( "Buy Admin ", "1.0", "XizzyS" );
register_clcmd("say /buyadmin","buy");
register_clcmd("say buyadmin","buy");
}
public buy()
{
ColorChat(0, "^4[%s]^1 ^4Super-Admin^1 : %s | ^4Mini-Admin^1 : %s^4 ^1| VIP : ^1%s^4",PREFIX,SUPERADMIN,MINIADMIN,VIP)
ColorChat(0, "^4[%s]^1 Contact ^3%s^4 : %s",PREFIX,CONTACT,FB)
ColorChat(0, "^4[%s]^1 Contact ^3%s^4 : %s",PREFIX,CONTACT2,FB2)
}
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()
}
}
}
buy.sma (1.74 KB)