[ZP] First Zombie Freeze Dec 17, 2017 12:28:15 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 17, 2017 12:28:15 GMT ITS BUG?Error: Must be lvalue (non-constant) on line 28Warning: Tag mismatch on line 30Warning: Tag mismatch on line 361 Error.(compile failed).Did Someone ?zmd94!
[ZP] First Zombie Freeze Dec 17, 2017 12:55:20 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 17, 2017 12:55:20 GMT Which code you use?
[ZP] First Zombie Freeze Dec 17, 2017 13:32:02 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 17, 2017 13:32:02 GMT #include <amxmodx>#include <fun>#include <zp50_core>#define PLUGIN "[ZP50] Freeze first zombie"#define VERSION "1.0"#define AUTHOR "wicho"#define MarkPlayerSpeed(%0) bitPlayerSpeed |= (1 << (%0 & 31))#define ClearPlayerSpeed(%0) bitPlayerSpeed &= ~(1 << (%0 & 31))#define IsPlayerSpeed(%0) bitPlayerSpeed & (1 << (%0 & 31))new bitPlayerSpeednew cvar_timepublic plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) cvar_time = register_cvar("zp_freeze_frist_zombie", "5.0")} public zp_fw_core_infect_post(id) { if(is_user_alive(id) && zp_core_is_first_zombie(id)) { IsPlayerSpeed(id) = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(cvar_time, "Unfreeze", id) } } public Unfreeze(id) { set_user_maxspeed(id, IsPlayerSpeed(id))}
[ZP] First Zombie Freeze Dec 17, 2017 14:41:27 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 17, 2017 14:41:27 GMT Just change this:set_task(cvar_time, "Unfreeze", id) -->set_task(get_pcvar_float(cvar_time), "Unfreeze", id)
[ZP] First Zombie Freeze Dec 17, 2017 15:54:28 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 17, 2017 15:54:28 GMT Error: Must be lvalue (non-constant) on line 28Warning: Tag mismatch on line 361 Error.(compile failed).ERROR=> IsPlayerSpeed(id) = get_user_maxspeed(id)WARNING : set_user_maxspeed(id, IsPlayerSpeed(id))
[ZP] First Zombie Freeze Dec 18, 2017 5:05:58 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 18, 2017 5:05:58 GMT Try below:#include <amxmodx>#include <zp50_core>#include <fun>new float: g_fPlayer[33]new g_fTimepublic plugin_init() { register_plugin("Freeze First Zombie", "1.0", "zmd94") g_fTime = register_cvar("FF_FreezeTime", "5.0")} public zp_fw_core_infect_post(id) { if(is_user_alive(id) && zp_core_is_first_zombie(id)) { g_fPlayer[id] = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(get_pcvar_float(g_fTime), "UnFreeze", id) } } public UnFreeze(id) { set_user_maxspeed(id, g_fPlayer[id])}
[ZP] First Zombie Freeze Dec 18, 2017 12:56:52 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 18, 2017 12:56:52 GMT Its Compile but the first Zombie it not Freeze i change the plugin #include <amxmodx>#include <zombieplague>#include <fun>new float: g_fPlayer[33]new g_fTimepublic plugin_init() { register_plugin("Freeze First Zombie", "1.0", "zmd94") g_fTime = register_cvar("FF_FreezeTime", "5.0")} public zp_fw_core_infect_post(id) { if(is_user_alive(id) && zp_get_user_first_zombie(id)) { g_fPlayer[id] = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(get_pcvar_float(g_fTime), "UnFreeze", id) } } public UnFreeze(id) { set_user_maxspeed(id, g_fPlayer[id])}
[ZP] First Zombie Freeze Dec 18, 2017 13:16:39 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 18, 2017 13:16:39 GMT Alright, nice.
[ZP] First Zombie Freeze Dec 18, 2017 15:22:56 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 18, 2017 15:22:56 GMT WoopsYou didn`t read my messagei said=>first zm ins`t freeze :/
[ZP] First Zombie Freeze Dec 19, 2017 1:37:57 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 19, 2017 1:37:57 GMT Fixed:#include <amxmodx>#include <zombieplague>#include <fun>new float: g_fPlayer[33]new g_fTimepublic plugin_init() { register_plugin("Freeze First Zombie", "1.0", "zmd94") g_fTime = register_cvar("FF_FreezeTime", "5.0")} public zp_user_infected_post(id, infector){ if(is_user_alive(id) && zp_get_user_first_zombie(id)) { g_fPlayer[id] = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(get_pcvar_float(g_fTime), "UnFreeze", id) } } public UnFreeze(id) { set_user_maxspeed(id, g_fPlayer[id])}
[ZP] First Zombie Freeze Dec 19, 2017 13:26:41 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 19, 2017 13:26:41 GMT Not work :/
[ZP] First Zombie Freeze Dec 19, 2017 14:34:37 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 19, 2017 14:34:37 GMT What not work? Explain it.
[ZP] First Zombie Freeze Dec 19, 2017 14:38:48 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by P!KaChu~ on Dec 19, 2017 14:38:48 GMT First Zombie Isn't FreezeWhen im first zm i can move freelyi did not freeze for 5 sec/Cvar Type :/
[ZP] First Zombie Freeze Dec 19, 2017 14:47:29 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by zmd94 on Dec 19, 2017 14:47:29 GMT Fixed again. Problem with float values:#include <amxmodx>#include <zombieplague>#include <fun>new Float: g_fPlayer[33]new g_fTimepublic plugin_init() { register_plugin("Freeze First Zombie", "1.0", "zmd94") g_fTime = register_cvar("FF_FreezeTime", "5.0")} public zp_user_infected_post(id, infector){ if(is_user_alive(id) && zp_get_user_first_zombie(id)) { g_fPlayer[id] = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(get_pcvar_float(g_fTime), "UnFreeze", id) } } public UnFreeze(id) { set_user_maxspeed(id, g_fPlayer[id])}
[ZP] First Zombie Freeze Aug 24, 2022 2:04:26 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by Pr0 on Aug 24, 2022 2:04:26 GMT Guys Please Help?#include <amxmodx>#include <fun>#include <zombieplague>#define PLUGIN "[ZP] Freeze Nemesis"#define VERSION "1.0"#define AUTHOR "wicho"#define MarkPlayerSpeed(%0) bitPlayerSpeed |= (1 << (%0 & 31))#define ClearPlayerSpeed(%0) bitPlayerSpeed &= ~(1 << (%0 & 31))#define IsPlayerSpeed(%0) bitPlayerSpeed & (1 << (%0 & 31))new bitPlayerSpeednew cvar_timepublic plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) cvar_time = register_cvar("zp_freeze_frost_zombie", "5.0")} public zp_user_infected_post(id, infector, nemesis){ if(is_user_alive(id) && zp_get_user_first_zombie(id)) { IsPlayerSpeed(id) = get_user_maxspeed(id) set_user_maxspeed(id, 1.0) set_task(cvar_time, "Unfreeze", id) } } public Unfreeze(id) { set_user_maxspeed(id, IsPlayerSpeed(id))}