L E V I N wrote: ↑22 Oct 2019, 20:49te tot pui autor da habar n-ai peste ce te pui, sau ce iei de pe net gheorghe
Code: Select all
#include <amxmodx> #define PLUGIN "No bot chat" #define VERSION "0.2" #define AUTHOR "Andr3y" //parola pentru chat #define passwd "q2D" new bool:g_allowed[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say", "sayHandle") register_clcmd("say_team", "sayHandle") } public client_putinserver(id) g_allowed[id] = false public sayHandle(id) { new said[192] read_args(said, 191) if(!said[0]) return PLUGIN_HANDLED remove_quotes(said) if (equali(said,passwd) && !g_allowed[id]) { g_allowed[id] = true; client_printcolor(id, "!g[!yFG!g] !yAi primit permisiunea de a folosi chatul") return PLUGIN_HANDLED; } if(!g_allowed[id]) { client_printcolor(id, "!g[!yFG!g] !yScrie !t%s !ypentru a putea folosi chatul.",passwd) return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } //chat color stock client_printcolor(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") // Green Color replace_all(msg, 190, "!y", "^1") // Default Color replace_all(msg, 190, "!t", "^3") // Team Color if (id) players[0] = id; else get_players(players, count, "ch") for ( new i = 0; i < count; i++ ) { if ( is_user_connected(players[i]) ) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } }
Mersi mult. A mers
Code: Select all
http://www.girlshare.ro/3769804486.8