Witam. Mam pytanie równoznaczne z prośbą, otóż czy byłby ktoś w stanie przerobić ten plugin --> http://amxx.pl/topic...honor-rank-mod/ tak aby wyświetlało w HUD w kolorze ciemno niebieskim :
Nazwa forum
Doświadczenie (czyli zabójstwa) :
Ranga :
czyli np :
www.NazwaForum.pl
Doświadczenie : 623/670
Ranga : Plutonowy
Kod .sma :
#include <amxmodx> #include <csx> #include <ColorChat> new const gNazwaPluginu[] = "Medal Of Honor Rank"; new const gWersjaPluginu[] = "1.0"; new const gAutorPluginu[] = "WoJaK"; new const gPrefixPluginu[] = "Medal Of Honor Rank"; new ranganum[47]; new ranga[][] = { "Brak", "Rekrut", "Starszy rekrut", "Szeregowy", "Starszy Szeregowy", "Kapral", "Starszy Kapral", "Plutonowy", "Sierzant", "Starszy sierzant", "Mlodszy Chorazy", "Chorazy", "Starszy Chorazy", "Chorazy Sztabowy", "Podporucznik", "Porucznik", "Kapitan", "Major", "Podpulkownik", "Pulkownik", "General Brygady", "General Dywizji", "General Broni", "General Wojsk", "Mlodszy Weteran", "Weteran", "Starszy Weteran", "Mlodszy Snajper", "Snajper", "Starszy Snajper", "Mistrz Wojenny", "Strzelec Wyborowy", "Starszy strzelec", "Mega Snajper", "Profesjonalny Strzelec", "Niepowstrzymany Strzelec", "Egzegutor", "Mlody Gromowiec", "Gromowiec", "Starszy Gromowiec", "Mlody Cheater", "Cheater", "Starszy Cheater", "Zabojca Generalow", "NoLife", "Marszalek Polski" } new rangaxp[47] = { 0, 10, 80, 180, 290, 410, 540, 670, 810, 960, 1110, 1300, 1500, 1700, 1900, 2200, 2500, 2800, 3100, 3400, 3700, 4000, 4300, 4700, 5100, 5500, 5900, 6300, 6700, 7100, 7600, 8100, 8600, 9100, 9600, 10500, 12000, 13700, 15800, 18000, 20800, 23400, 28200, 32000, 36200, 40000 } public plugin_init() { register_plugin(gNazwaPluginu, gWersjaPluginu, gAutorPluginu); register_event( "ResetHUD", "eventUpdateStatus", "be"); register_event( "StatusValue", "eventUpdateStatus", "be", "1=1" ,"2=0"); set_task(600.0, "Announcement"); } public Announcement(id) { ColorChat(id,TEAM_COLOR,"[%s]^x03 Ten serwer uzywa^x04 %s^x03 w wersji^x04 %s^x03 autorstwa^x04 %s",gPrefixPluginu, gNazwaPluginu, gWersjaPluginu, gAutorPluginu); } public eventUpdateStatus(id) { if(is_user_bot(id)) return; static stats[8], body[8] get_user_stats(id, stats, body) while(stats[0] >= rangaxp[ranganum[id]]) ranganum[id]++ showStatus(id, "[%s] Doswiadczenie: %d/%d Ranga: %s",gPrefixPluginu, stats[0], rangaxp[ranganum[id]], ranga[ranganum[id]]); } stock showStatus(id, const szStatus[], ...) { new szBuffer[128]; vformat(szBuffer, 127, szStatus, 3); static msgStatusText = 0; if(!msgStatusText) msgStatusText = get_user_msgid("StatusText"); message_begin(MSG_ONE, msgStatusText, _, id); write_byte(0); write_string(szBuffer); message_end(); }
Za pomoc dam +++