Iwanow123 Нов
Брой мнения : 5 Дата на регистрация : 07.02.2014
| Заглавие: Заявка за едит на 2 плугина. Сря 14 Май 2014, 18:45 | |
| Здравейте може ли тези 2 сма да ми ги комплирате с amx mod x от сма към амхх но да промените да пише " Vodka S Cola! " а не друго име на верига !! Благодаря ето и сма файловете ! .. 1) е за T Win , CT Win - Код:
-
#include <amxmodx> #include <dhudmessage> new const g_org[][] = { "#Terrorists_Win", "#CTs_Win", "#Bomb_Planted", "#Bomb_Defused" }; #define MAX_REPLACE sizeof(g_org) new const g_repl[MAX_REPLACE][] = { "[Cs-FresH] ^nTerrorists Win!", "[Cs-FresH] ^nCounter-Terrorists Win!", "[Cs-FresH] ^nThe bomb has been planted!", "[Cs-FresH] ^nThe bomb has been defused!" }; enum _:RGB { R, G, B }; new const g_color[MAX_REPLACE][RGB] = { {255, 115, 75}, {137,255,255}, {203,255,43}, {214,255,255} }; new const g_effects[MAX_REPLACE] = { 0, 0, 0, 0 }; new const Float:g_time[MAX_REPLACE] = { 3.0, 3.0, 3.0, 3.0 }; new Trie:g_repls; public plugin_init() { register_plugin("Dhud Win Message", "1.0", ""); register_message(get_user_msgid("TextMsg"), "msgTxtMsg") ; g_repls = TrieCreate(); for(new i = 0; i < MAX_REPLACE; i++) { TrieSetCell(g_repls, g_org[i], i); } } public msgTxtMsg(iMsgId, iMsgDest, id) { if( !id && get_msg_arg_int(1) == print_center ) { new szMessage[64], index; get_msg_arg_string(2, szMessage, charsmax(szMessage)) if( TrieGetCell(g_repls, szMessage, index)) { set_dhudmessage(g_color[index][R],g_color[index][G],g_color[index][B],-0.40,0.40,g_effects[index],g_time[index],g_time[index],0.0, 0.0,true); show_dhudmessage(0, g_repl[index]); return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE; } |
|
smurfa_vr HL-BG Community
Брой мнения : 8113 Дата на регистрация : 31.03.2011 Местожителство : Враца
| |
Iwanow123 Нов
Брой мнения : 5 Дата на регистрация : 07.02.2014
| |
smurfa_vr HL-BG Community
Брой мнения : 8113 Дата на регистрация : 31.03.2011 Местожителство : Враца
| |
Iwanow123 Нов
Брой мнения : 5 Дата на регистрация : 07.02.2014
| |