[ZP 4.3] Point System + Autosave Jul 15, 2022 15:55:16 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by $h@DoW on Jul 15, 2022 15:55:16 GMT Jul 11, 2022 23:01:59 GMT simolex said:#$h@DoW i just wanted to add point in hudinfo in zp special but it got me errors and i got the codes her please help me <3show_dhudmessage(ID_SHOWHUD, "HP: %s|%L %s|%L %s|Level: %d|Exp: %d |Points: %i|", add_point(get_user_health(ID_SHOWHUD)), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", add_point(g_ammopacks[ID_SHOWHUD], zp_level(id), zp_exp(id), zp_get_user_points(id)Please see my tutorial in tutorial section. YOU WILL FIND IT
[ZP 4.3] Point System + Autosave Jul 15, 2022 15:56:46 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by $h@DoW on Jul 15, 2022 15:56:46 GMT Jul 10, 2022 22:11:07 GMT stek1337 said:Jul 10, 2022 8:33:09 GMT $h@DoW said:what is your problem with the jetpack?I need help with zp human classes, I like to add ADMIN FLAG for every class, can you help me#include <amxmodx>#include <cstrike>#include <fun>#include <fakemeta>#include <fakemeta_util>#include <hamsandwich>#include <zombieplague>const PRIMARY_WEAPONS_BITSUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)new g_ent_playermodel[33];new g_ent_weaponmodel[33];new g_currentweapon[33];new g_player_class[33]public plugin_init(){ register_plugin("[ZP] Addon: Human Classes", "1.3", "fiendshard") RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1)}public plugin_precache(){ // Change paths and names of your models below. Beware of typos. engfunc(EngFunc_PrecacheModel, "models/player/arctic/arctic.mdl") engfunc(EngFunc_PrecacheModel, "models/player/gsg9/gsg9.mdl") engfunc(EngFunc_PrecacheModel, "models/player/guerilla/guerilla.mdl") engfunc(EngFunc_PrecacheModel, "models/player/leet/leet.mdl") engfunc(EngFunc_PrecacheModel, "models/player/sas/sas.mdl") engfunc(EngFunc_PrecacheModel, "models/player/terror/terror.mdl") engfunc(EngFunc_PrecacheModel, "models/player/urban/urban.mdl")}public message_cur_weapon(msg_id, msg_dest, msg_entity){ if (!is_user_alive(msg_entity) || get_msg_arg_int(1) != 1) return; static weapon weapon = get_msg_arg_int(2) g_currentweapon[msg_entity] = weapon fm_set_weaponmodel_ent(msg_entity)}public fwHamPlayerSpawnPost(id){ set_task(get_cvar_float("zp_delay")+5.0, "ClCmdSelectModel",id)}public ClCmdSelectModel(id, menuid){ if(zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id)) { return PLUGIN_HANDLED; } else if(!is_user_alive(id)) { return PLUGIN_HANDLED; } else { human_menu(id) } return PLUGIN_CONTINUE;}public human_menu(id){ new menu = menu_create("\yBûáepu êëacc ÷åëoâeêa:", "human_menu_handler") menu_additem(menu, "\wÁðîíåíîñåö \y(+20 Áðîíè)", "1", 0) menu_additem(menu, "\wÆèây÷èé \y(+300 HP)", "2", 0) menu_additem(menu, "\wÏðûãóí \y(Bûcoêo nðûã.)", "3", 0) menu_additem(menu, "\wÌopoçucò \y(X5 ëeg.rpeí)", "4", 0) menu_additem(menu, "\wÏogæugaòeëü \y(X5 îãí.ãðåí)", "5", 0) menu_additem(menu, "\wCâeòuëa \y(X5 ñâåò.ãðåí u Àóðà)", "6", 0) menu_additem(menu, "\wÙuòîâîg \y(Ùèò + Äurë)", "7", 0) menu_setprop(menu,MPROP_EXITNAME,"Çàêðûòü"); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu, 0) }public human_menu_handler(id, menu, item){ if( item == MENU_EXIT ) { menu_destroy(menu) return PLUGIN_HANDLED } new data[6], iName[64] new access, callback menu_item_getinfo(menu, item, access, data, 5, iName, 63, callback) new key = str_to_num(data) switch(key) { case 1: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 1 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/arctic/arctic.mdl") fm_set_weaponmodel_ent(id) } set_user_armor(id, 20) client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Áðîíåíîñåö (20 AP)") } case 2: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 2 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/gsg9/gsg9.mdl") fm_set_weaponmodel_ent(id) } set_user_health(id, 300) client_print(id, print_chat,"[ZP] Your class is: Pounder (300 HP)"); } case 3: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 3 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/guerilla/guerilla.mdl") fm_set_weaponmodel_ent(id) } set_user_gravity(id, 0.50) client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Ïðûãóí (Âûøå ïðûãàåò)"); } case 4: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 4 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/leet/leet.mdl") fm_set_weaponmodel_ent(id) } cs_set_user_bpammo(id, CSW_FLASHBANG, 5) client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Ìopoçucò (X5 ëeg.rpeí)"); } case 5: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 5 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/sas/sas.mdl") fm_set_weaponmodel_ent(id) } set_user_health(id, get_cvar_num("zp_human_health")) set_user_armor(id, 0) set_user_gravity(id, 1.00) cs_set_user_bpammo(id, CSW_HEGRENADE, 5) client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Ïogæugaòeëü (X5 îãí.ãðåí)") } case 6: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 6 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/terror/terror.mdl") fm_set_weaponmodel_ent(id) } set_user_health(id, get_cvar_num("zp_human_health")) set_user_armor(id, 0) set_user_gravity(id, 1.00) cs_set_user_bpammo(id, CSW_SMOKEGRENADE, 5) set_pev(id, pev_effects, pev(id, pev_effects) | EF_BRIGHTLIGHT) client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Câeòuëa (X5 ñâåò.ãðåí u Àóðà)"); } case 7: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id)) return PLUGIN_HANDLED; g_player_class[id] = 7 fm_remove_model_ents(id) if (!pev_valid(g_ent_playermodel[id])) { g_ent_playermodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); set_user_rendering(id,kRenderFxNone,0,0,0,kRenderTransAlpha,1) set_pev(g_ent_playermodel[id], pev_classname, "player_model") set_pev(g_ent_playermodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_playermodel[id], pev_aiment, id) set_pev(g_ent_playermodel[id], pev_owner, id) // Change name of your model below. engfunc(EngFunc_SetModel, g_ent_playermodel[id], "models/player/urban/urban.mdl") fm_set_weaponmodel_ent(id) } drop_primary_weapons(id) give_item(id,"weapon_shield") give_item(id,"weapon_deagle") new weapon_id = fm_find_ent_by_owner(-1, "weapon_deagle", id); if(weapon_id) { cs_set_weapon_ammo(weapon_id, 50); } client_print(id, print_chat,"[ZP] Âàø Êëàññ äëÿ ýòîãî ðàóíäà: Ùuòîâîg (Ùèò + Äurë)"); } } menu_destroy(menu) return PLUGIN_HANDLED}public zp_user_infected_post(id, infector){ fm_remove_model_ents(id)}stock fm_remove_model_ents(id){ if (pev_valid(g_ent_playermodel[id])) { engfunc(EngFunc_RemoveEntity, g_ent_playermodel[id]) g_ent_playermodel[id] = 0 } if (pev_valid(g_ent_weaponmodel[id])) { engfunc(EngFunc_RemoveEntity, g_ent_weaponmodel[id]) g_ent_weaponmodel[id] = 0 }}stock fm_set_weaponmodel_ent(id){ static model[100] pev(id, pev_weaponmodel2, model, sizeof model - 1) if (!pev_valid(g_ent_weaponmodel[id])) { g_ent_weaponmodel[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")) if (!pev_valid(g_ent_weaponmodel[id])) return; set_pev(g_ent_weaponmodel[id], pev_classname, "weapon_model") set_pev(g_ent_weaponmodel[id], pev_movetype, MOVETYPE_FOLLOW) set_pev(g_ent_weaponmodel[id], pev_aiment, id) set_pev(g_ent_weaponmodel[id], pev_owner, id) } engfunc(EngFunc_SetModel, g_ent_weaponmodel[id], model)}stock drop_primary_weapons(id) { static weapons [ 32 ], num, i, weaponid num = 0 get_user_weapons (id, weapons, num ) for ( i = 0; i < num; i++ ) { weaponid = weapons [ i ] if ( ( (1<<weaponid) & PRIMARY_WEAPONS_BITSUM ) ) { static wname[32] get_weaponname(weaponid, wname, charsmax(wname)) engclient_cmd(id, "drop", wname) } }}[/quote]Find case 1 case 2 and case 3 and in each one just add get_user_flag (yourflag)Example switch(key) { case 1: { if(zp_get_user_zombie(id) || zp_get_user_survivor(id) || zp_get_user_nemesis(id) || get_user_flag H(id)) return PLUGIN_HANDLED;
[ZP 4.3] Point System + Autosave Jan 28, 2023 15:26:42 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by darkallience3 on Jan 28, 2023 15:26:42 GMT Good joob!
[ZP 4.3] Point System + Autosave Jun 23, 2023 18:33:42 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by qosayaz3ar on Jun 23, 2023 18:33:42 GMT how add showhud points and gold in zombie outstanding
[ZP 4.3] Point System + Autosave Feb 20, 2024 20:48:24 GMT Quote Select PostDeselect PostLink to PostMemberGive GiftBack to Top Post by -=Florin=- on Feb 20, 2024 20:48:24 GMT You can update link bro?