Вниманию участников! Данный форум теперь является архивом и вскором времени здесь нельзя будет создавать новых тем! Просьба всем для общения и создания новых тем перейти на наш новый форум: http://amxmodx.su/
в нем есть такая функция: если админ пишет в чат /help то ему выводится MOTD с текстом(мотд храниться в html файле)
а если обычный игрок то ему пишется в консолб на английском...
вот нашел часть кода незнаю она или нет...
Code
public dmaphelp(id) { if (!(get_user_flags(id) & ADMIN_MAP)) { new myversion[32]; get_cvar_string("Deags_Map_Manage", myversion, 31); console_print(id, "*****This server uses the plugin Deagles NextMap Management %s *****", myversion); console_print(id, ""); if (cycle) { console_print(id, "=================== The plugin is set to cycle mode. No vote will take place ================="); return PLUGIN_HANDLED; } console_print(id, "Say ^"vote mapname^" ^"nominate mapname^" or just simply ^"mapname^" to nominate a map"); console_print(id, ""); console_print(id, "Say ^"nominations^" to see a list of maps already nominated."); console_print(id, "Say ^"listmaps^" for a list of maps you can nominate"); console_print(id, "Number of maps for the vote at the end of this map will be: %d", maps_to_select); console_print(id, "Players may nominate up to %d maps for the vote (dmap_nominations)", maxnom); console_print(id, "Players may nominate up to %d **Custom** maps for the vote (dmap_maxcustom)", maxcustnom); if (enabled) { console_print(id, "Say ^"rockthevote^" to rockthevote"); console_print(id, "In order to rockthevote the following 3 conditions need to be true:"); console_print(id, "%d percent of players must rockthevote, and at least %d players must rockthevote", floatround(rtvpercent * 100.0), minimum); console_print(id, "Vote may not be rocked before %d minutes have elapsed on the map", minimumwait); } if (containi(mapsurl, "www") != -1 || containi(mapsurl, "http") != -1) { console_print(id, "You can download Custom maps at %s (dmap_mapsurl)", mapsurl); } return PLUGIN_HANDLED; } //For CS 1.6, the following MOTD will display nicely, for 1.5, It will show html tags. client_print(id, print_chat, "%L", id, "DMAP_MOTD_LOADING"); showmotdhelp(id);
public dmaphelp(id) { //For CS 1.6, the following MOTD will display nicely, for 1.5, It will show html tags. client_print(id, print_chat, "%L", id, "DMAP_MOTD_LOADING"); showmotdhelp(id);
return PLUGIN_HANDLED; }
Упс, извеняюсь, не заметил...
Говори что думаешь и думай что говоришь...
Сообщение отредактировал ZETA - Пятница, 30.10.2009, 22:02:01
я только что попробывал сделать чтто ты мне сказал но ничего не вышло. если сможешь править код и дать полностью я буду очень благодарен.
P.S. Глаза красные ппц...
Добавлено (30.10.2009, 22:04:30) --------------------------------------------- как думаешь ты сможешь мне помочь? просто столько времени убив на него и уже не то чтобы принципиально а реально он нужен...