Jako to mój pierwszy post ;] Nie będę się rozpisywał.
Próbuje zrobić say_gang.
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <ColorChat> #define PLUGIN "Say_Gang" #define VERSION "1.1" #define AUTHOR "Cre[A]t0R" new menuChoice[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say_gang", "gang_czat"); } public gang_czat(id) { new nazwa[64]; read_args(nazwa, charsmax(nazwa)); remove_quotes(nazwa); switch(menuChoice[id]) get_user_name( iPlayer, szName, charsmax( szName ) ); new szName[32]; { case 0: { ColorChat(id, RED, "^x01 (Gang)^x03 %s^x01:%s", szName, nazwa); } } }
Na razie mam tylko to, lecz nie wiem jak pobrać id gracza.
Piszę ten post z zapytanie jak pobrać id gracza oraz jak ustawić aby na przycisku "i" otwierał się say_gang.