JAKuT Posted June 30, 2009 Report Share Posted June 30, 2009 { client_print(id, print_chat, "[WAR3FT-IMP] Write /vip and u will see how get VIP and VIP privilegies.") } Vajadzetu te uztaisit lai buutu apmeram taa.... [WAR3FT-IMP] Write (green)/vip and u will see how get (green)VIP and (green)VIP privilegies. Link to comment Share on other sites More sharing options...
JAKuT Posted June 30, 2009 Author Report Share Posted June 30, 2009 UP! Link to comment Share on other sites More sharing options...
shine Posted June 30, 2009 Report Share Posted June 30, 2009 Nevajag bumpot ik pa 7h. Tas būtu izdarāms pavisam viegli, tikai šeit uzrakstot, visticāmāk, jūs nesaprastu, kas tieši, jo, pirmkārt, es nemāku normāli paskaidrot, kur ko likt. Otrkārt, war3 nav vienā failā, tāpēc man būs vēl grūtāk izskaidrot, un es nevēlos pist laiku speciāli kādam taisīt. Ja nu vienīgi remix.cc nebūs, ko darīt, tad palīdzēs. Link to comment Share on other sites More sharing options...
SCORPIONS Posted July 1, 2009 Report Share Posted July 1, 2009 stock client_printc(const id, const string[], {Float, Sql, Resul,_}:...) { new msg[191], players[32], count = 1; vformat(msg, sizeof msg - 1, string, 3); replace_all(msg,190,"!g","^4"); replace_all(msg,190,"!y","^1"); replace_all(msg,190,"!t","^3"); 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, say_text,_, players[i]); write_byte(players[i]); write_string(msg); message_end(); } } } { client_printc(id, "[WAR3FT-IMP] Write !g/vip !yand u will see how get !gVIP !yand !gVIP !yprivilegies.") } Iznākums: [WAR3FT-IMP] Write /vip and u will see how get VIP and VIP privilegies. P.S. Yellow tādēļ, ka tā ir default čata krāsa... Domāju, ka ar to pietiks, lai visu izveidotu tā kā vajag... Link to comment Share on other sites More sharing options...
shine Posted July 1, 2009 Report Share Posted July 1, 2009 Wrong. say_text > get_user_msgid("SayText") Bet tas lūk ir neeffektīvi, jo tiek vilkts tik reizes cik spēlētāju serveri, tāpēc vajag izveidot mainīgo: new say_text = get_user_msgid("SayText") !g > ^x04? Vislabāk būtu, ja get_players nomainīt pret loopu ar maxplayers, kas tiek nolasīt globālajā mainīgajā un pēc tam veiktas pārbaudes, vai ir piekonektējies. Vislabāk būtu to veidot main failā. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now