LuxeHD

Members
  • Content count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About LuxeHD

  • Rank
    Newbie
  1. #include <amxmodx> #include <fun> #include <zombieplague> new const item_name[] = "Buy 5000 HP!" const g_item_cost = 25 #define MAX_IN_ROUND 5 new g_itemid_buyhp new hpamount new g_maxplayers, g_msgSayText public plugin_init() { register_plugin("[ZP] Buy Health Points", "1.0", "STRELOK") register_event("ResetHUD","Start_round","be") g_itemid_buyhp = zp_register_extra_item(item_name, g_item_cost, ZP_TEAM_ZOMBIE) hpamount = register_cvar("zp_buyhp_amount", "5000") g_msgSayText = get_user_msgid("SayText") g_maxplayers = get_maxplayers() } public zp_extra_item_selected(id, itemid) { if (itemid != g_itemid_buyhp > MAX_IN_ROUND) return; set_user_health(id,get_user_health(id)+get_pcvar_num(hpamount)) zp_colored_print(id, "^x04[ZP]^x01 You Bought 5000 HP!") } // Colored chat print zp_colored_print(target, const message[], any:...) { static buffer[512], i, argscount argscount = numargs() // Send to everyone if (!target) { static player for (player = 1; player <= g_maxplayers; player++) { // Not connected if (!is_user_connected(player)) continue; // Remember changed arguments static changed[5], changedcount // [5] = max LANG_PLAYER occurencies changedcount = 0 // Replace LANG_PLAYER with player id for (i = 2; i < argscount; i++) { if (getarg(i) == LANG_PLAYER) { setarg(i, 0, player) changed[changedcount] = i changedcount++ } } // Format message for player vformat(buffer, charsmax(buffer), message, 3) // Send it message_begin(MSG_ONE_UNRELIABLE, g_msgSayText, _, player) write_byte(player) write_string(buffer) message_end() // Replace back player id's with LANG_PLAYER for (i = 0; i < changedcount; i++) setarg(changed[i], 0, LANG_PLAYER) } } // Send to specific target else { // Format message for player vformat(buffer, charsmax(buffer), message, 3) // Send it message_begin(MSG_ONE, g_msgSayText, _, target) write_byte(target) write_string(buffer) message_end() } } Попробуй это
  2. Скинь "steam_appid.txt" в cstrike сервера должен лежать
  3. Вроде как проблема тут: L 06/11/2017 - 13:14:22: [nextmap.amxx] WARNING: Couldn't find a valid map or the file doesn't exist (file "mapcycle.txt")
  4. Добавь больше уровней, у меня тоже такое было, из-за того что превышен уровень, выводится ошибка типо нет уровней дальше и оно пропадает.