i have showed the motd...
PHP Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Abuse","1.0","N e [X] u $")
register_clcmd("say /abuse" , "showmotd")
register_clcmd( "say", "CheckSay" )
register_clcmd( "say_team", "CheckSay" )
}
public CheckSay(id){
new g_szUserSpeech[32];
new name[32];
get_user_name(id,name,31);
read_args( g_szUserSpeech[id-1],32);
remove_quotes(g_szUserSpeech[id-1]);
if( containi( g_szUserSpeech[id-1], "fuck" ) > -1)
{
client_print( 0, print_chat, "[XTREME-| Server] Player %s Has Been Kicked for Abusing!", name);
server_cmd( "kick #%d ^"Learn Some Manners of Talking!!!^"", get_user_userid(id));
}
}
public showmotd(id){
show_motd(id, "addons/amxmodx/configs/abuse.txt", "Abusive Words")
}
i just need a help how to read a line from file n check those abusive words in user chat..... plzzzz someone help.....
__________________