RSSy MYGO.pl Opublikowano Grudzień 6, 2020 o 15:10 RSSy Udostępnij Opublikowano Grudzień 6, 2020 o 15:10 Hello, I'm looking for a person who can put me in a 2 function script which is this one Add Prefix for Admins Add prefix for Terrorists and CT CT > [BUILDER] on say and say_team Terrorist > [ZOMBIE] on say and say_team If I need this because I have the line that ConnorMcLeod to develop so that I can add the function as soon as I add the plugin for the CT and Terrorist prefix and the plugin for the Admin, as soon as I write in the chat its mes in duplicate. The only thing I want is to have it in the same plugin. PHP Code: #include < amxmodx >#include <cromchat>#pragma semicolon 1#define PLUGIN ""#define VERSION "0.0.1"#define cm(%0) ( sizeof(%0) - 1 )public plugin_init(){ register_plugin( PLUGIN, VERSION, "ConnorMcLeod" ); register_clcmd("say", "Host_Say", 0); register_clcmd("say_team", "Host_Say", 1);}public Host_Say(id){ static said[190]; read_args(said, charsmax(said)); remove_quotes(said); if( !said[0] || containi(said, "%s%s") != -1 ) { return PLUGIN_HANDLED; } new name[32]; get_user_name(id, name, charsmax(name)); new team = get_user_team(id); client_print_color(0, id, "%s^4[%s] ^3%s^1: %s", is_user_alive(id) ? "" : "^1*DEAD* ", team == 1 ? "ZOMBIE" : random(2) ? "HERO" : "HUMAN", name, said); return PLUGIN_HANDLED_MAIN; // so chat cmds gonna work.} Attached Thumbnails Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi