lol
I know there is no send_msg function in the amx libraries. I have written my own function....which i take it is perfectly valid in small as it is in any other language
Here is the code just so you can see what it does. Like i said before its just to remove the need to write the code over again
Code:
public send_msg(id, rateType, rateValue)
{
new playerName[32]
new strMesg[128]
get_user_name(id,playerName,31)
format(strMesg,127,"[WARNING] - %s has a low %s value (%s)",playerName, rateType, rateValue)
// Inform any current admins of users low rate
new players[32], inum, playerid
// Get all the players
get_players(players,inum)
// For each player, check if they are an admin in order to know who to send msg to
for(new i = 0; i < inum; ++i)
{
playerid = players[i]
if (!(get_user_flags(playerid)&ADMIN_CHAT))
{
client_print(playerid,print_chat,strMesg)
}
}
}
Heopfully this will make it clearer for you to see what im trying to do bishop