How to make this HUD spec Jul 10, 2015 19:18:38 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by 🎃 🎃 🎃 🎃 on Jul 10, 2015 19:18:38 GMT How to make this hud spectator - imageshack.com/a/img540/870/YkINYh.jpg
How to make this HUD spec Jul 10, 2015 21:39:06 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jul 10, 2015 21:39:06 GMT Just try below code:#include <amxmodx>#include <engine>#include <geoip>#define TASK_INFO 2399new PlayerInfoHudnew szCountry[32], szCity[32]public plugin_init(){ register_plugin("Spectate Country", "1.0", "zmd94") PlayerInfoHud = CreateHudSyncObj()}public client_putinserver(id){ if(is_user_connected(id)) { set_task(1.0, "InfoHud", id+TASK_INFO, _, _, "b") }}public client_disconnect(id){ remove_task(id+TASK_INFO)}public InfoHud(id){ id -= TASK_INFO if(!is_user_alive(id)) { static iSpec; iSpec = entity_get_int(id, EV_INT_iuser2) if(!is_user_alive(iSpec)) return new iSpecName[32], szIP[32] get_user_name(iSpec, iSpecName, charsmax(iSpecName)) get_user_ip(id, szIP, charsmax(szIP), 1) geoip_country(szIP, szCountry, charsmax (szCountry)) geoip_city(szIP, szCity, charsmax(szCity)) if(szCountry[0] == EOS) { copy(szCountry, charsmax(szCountry), "Error") } if(szCity[0] == EOS) { copy(szCity, charsmax(szCity), "Error") } set_hudmessage(0, 0, 250, 0.01, 0.28, 0, 6.0, 12.0, 0.0, 0.0, -1) ShowSyncHudMsg(id, PlayerInfoHud,"Spectating: %s ^nFrom: %s, %s", iSpecName, szCountry, szCity) }}
How to make this HUD spec Jul 10, 2015 22:10:43 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by 🎃 🎃 🎃 🎃 on Jul 10, 2015 22:10:43 GMT I witll testing it but first how to fix this:This is spectating hud inforamtion (Zombies / Nemesis) - imageshack.com/a/img538/6979/XBU5Po.jpgThis is spectating hud inforamation (Humans / Survivor / Sniper) - imageshack.com/a/img538/4342/8ahxoA.jpg
How to make this HUD spec Jul 11, 2015 3:39:15 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jul 11, 2015 3:39:15 GMT Sorry, I'm not sure. Maybe there is problem with your hud code.
How to make this HUD spec Jul 11, 2015 4:12:32 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by 🎃 🎃 🎃 🎃 on Jul 11, 2015 4:12:32 GMT // Spectating someone else? if (id != ID_SHOWHUD) { // Show name, health, class, and ammo packs and armor set_dhudmessage(random(256),random(256),random(256), HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d || Armor: %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue)) } else { if (g_zombie[ID_SHOWHUD]) // zombies { // Show health, class and ammo packs and armor set_dhudmessage(255,165,0, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD]) } else { // Show health, class and ammo packs and armor set_dhudmessage(0,245,255, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Armor: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), pev(ID_SHOWHUD, pev_armorvalue), class, g_ammopacks[ID_SHOWHUD]) } }}
How to make this HUD spec Jul 11, 2015 9:07:48 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jul 11, 2015 9:07:48 GMT Just try to change below:// Spectating someone else? if (id != ID_SHOWHUD) { // Show name, health, class, and ammo packs and armor set_dhudmessage(random(256),random(256),random(256), HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d || Armor: %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], ID_SHOWHUD, "ARMOR", pev(ID_SHOWHUD, pev_armorvalue)) } else { if (g_zombie[ID_SHOWHUD]) // zombies { // Show health, class and ammo packs and armor set_dhudmessage(255,165,0, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD]) } else { // Show health, class and ammo packs and armor set_dhudmessage(0,245,255, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Armor: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), pev(ID_SHOWHUD, pev_armorvalue), class, g_ammopacks[ID_SHOWHUD]) } }}-->// Spectating someone else? if (id != ID_SHOWHUD) { // Show name, health, class, and ammo packs and armor set_dhudmessage(random(256),random(256),random(256), HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d || Armor: %d", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD], pev(ID_SHOWHUD, pev_armorvalue)) } else { if (g_zombie[ID_SHOWHUD]) // zombies { // Show health, class and ammo packs and armor set_dhudmessage(255,165,0, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), class, g_ammopacks[ID_SHOWHUD]) } else { // Show health, class and ammo packs and armor set_dhudmessage(0,245,255, HUD_STATS_X, HUD_STATS_Y, 0, 6.0, 1.1, 0.0, 0.0) show_dhudmessage(ID_SHOWHUD, "HP: %d || Armor: %d || Class: %s || AP: %d - Zombie World 0.3", pev(ID_SHOWHUD, pev_health), pev(ID_SHOWHUD, pev_armorvalue), class, g_ammopacks[ID_SHOWHUD]) } }}
How to make this HUD spec Jul 14, 2015 17:33:32 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by 🎃 🎃 🎃 🎃 on Jul 14, 2015 17:33:32 GMT Ok, but now ho to make unlimited clip in the spec hud ? When human have clip: Unlimited Clip: YesWhen human not have clip: Unlimited Clip: Nolook here imagizer.imageshack.us/a/img540/870/YkINYh.jpg
How to make this HUD spec Jul 15, 2015 0:27:16 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jul 15, 2015 0:27:16 GMT Just need to add dynamic to the unlimited clip code. Then, use the native in show about the unlimited clip in your hud.
How to make this HUD spec Jul 15, 2015 12:36:05 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by 🎃 🎃 🎃 🎃 on Jul 15, 2015 12:36:05 GMT ok, where i have to added this code ?
How to make this HUD spec Jul 15, 2015 14:58:11 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Jul 15, 2015 14:58:11 GMT Do you have your own unlimited clip extra item plugin?