PHP Code:
#include <amxmodx>
#define chance(%1) ( %1 > random(100) ) // %1 = probability
new g_Text, g_Chance;
public plugin_init()
{
register_plugin("End Round Message", "1.1", "hleV");
g_Text = register_cvar("erm_text", "Default Text");
g_Chance = register_cvar("erm_chance", "35");
register_logevent("RoundEnd", 2, "1=Round_End");
}
public RoundEnd()
{
if (chance(get_pcvar_num(g_Chance)))
return;
new Text[128];
get_pcvar_string(g_Text, Text, 127);
client_print(0, print_chat, Text);
}
__________________