How do I make it so it prints in colorchat with client_print. I'm not sure how to do this. Can anybody give me an example?>
PHP Code:
Slayaim(id)
{
new player, body;
new szPlayerName[32];
get_user_aiming(id, player, body);
get_user_name(player, szPlayerName, 32);
if (get_user_flags(id) & ADMIN_BAN)
{
if (is_user_alive(player) && get_user_flags(player) & ADMIN_IMMUNITY)
{
client_print(id, "You cant slay some one with Immunity!");
}
else
if (is_user_alive(player))
{
user_kill(player);
client_print(player, "You have been Slayed!");
client_print(id, "You just Slayed %s!", szPlayerName);
}
}
}
__________________