Resolved please read the topic
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
please read the topic
hello guys
i want to do this
when the humans open extra items menu , they dont see zombies extra items
and when zombies open extra items menu , they dont see humans extra items
because when i use ITEM_DISABLED , it's disabled , when i use ITEM_IGNORE it's showing it Enabled , i want from anyone give me a simple code when i type return ITEM_DONT_SHOW , the item dont seen , sorry for my bad eng lang , please fast answer........thanks
i hope @Jack , will no say to me , (use v1.3) , just who can help me , help me
thanks
i want to do this
when the humans open extra items menu , they dont see zombies extra items
and when zombies open extra items menu , they dont see humans extra items
because when i use ITEM_DISABLED , it's disabled , when i use ITEM_IGNORE it's showing it Enabled , i want from anyone give me a simple code when i type return ITEM_DONT_SHOW , the item dont seen , sorry for my bad eng lang , please fast answer........thanks
i hope @Jack , will no say to me , (use v1.3) , just who can help me , help me
thanks
Last edited by Muhammet20 on 23 Jan 2019, 19:30, edited 1 time in total.
[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
i using ze v2.2
[ Post made via Android ]

[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
but if you mean Escape Coins Plugin
i downloaded bb_ammopacks but i edited so much things on it , i will give you my code tommorow because now its night in my country and i chatting with you now from my phone
[ Post made via Android ]

[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
here is my code :
___________________
Code: Select all
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <hamsandwich>
#include <nVault>
#include <ammopacks>
#define PLUGIN "BB ammo_packs"
#define VERSION "1.0"
#define AUTHOR "G[o]Q"
new mExtra_Items // Menu
new mcbExtra_Items // Menu Callback
new Escape_Coins[33]
new liczba_itemow
new pack_bonus,damage_ap,vault
new Array:nazwy_itemow
new Array:teamy_itemow
new Array:koszta_itemow
new kup_item
new g_vault
new nazwa_gracza[33][64]
public plugin_init() {
register_clcmd("soloplaylollol","pokaz_menu")
register_concmd("give_ap","cmd_daj_ap",ADMIN_IMMUNITY,"<Nick> <Ilosc>")
register_clcmd("","use_command_4_item")
register_clcmd("say","use_command_4_item")
nazwy_itemow=ArrayCreate(64,1);
teamy_itemow=ArrayCreate(1,1);
koszta_itemow=ArrayCreate(1,1);
cache_comands_first()
//cache_comands_second()
set_task(1.0,"cache_comands_second")
register_event("DeathMsg", "DeathMsg", "a")
register_event("Damage", "Damage", "b", "2!=0")
RegisterHam(Ham_Spawn,"player","spwn")
pack_bonus=register_cvar("BB_ammo_per_kill","5") // ile ammo_packow za kill
damage_ap=register_cvar("BB_ammo_per_dmg", "2") // ile ammo_packow za dmg
vault=register_cvar("BB_save_ap","1") //1 zapis wlaczony , 0 zapis wylaczony
if(get_pcvar_num(vault))
g_vault=nvault_open("Base_Builder")
kup_item = CreateMultiForward("wybrano_item", ET_CONTINUE, FP_CELL, FP_CELL) //wybrano_item(id,item_id)
}
public Damage(id)
{
new kid = get_user_attacker(id) // Gracz atakujacy
if(kid==id || !kid || !is_user_alive(kid)) return PLUGIN_HANDLED
new iPlayers[32], iNum
get_players(iPlayers, iNum, "ace", "CT")
for (new i = 0; i < iNum; i++)
{
BB_set_user_ap(iPlayers[i], BB_get_user_ap(iPlayers[i]) + get_pcvar_num(damage_ap))
Escape_Coins[kid]+=1
}
return PLUGIN_CONTINUE
}
public cache_comands_first(){
new linijka=0,text[128],chars
static configdir[64],plik[128]
get_configsdir(configdir,63)
formatex(plik,127,"%s/bb-commands.ini",configdir)
do{
linijka = read_file(plik,linijka,text,127,chars)
if((text[0]==';') || !chars) continue
register_clcmd(text,"pokaz_menu")
}
while(linijka!=0)
}
public cache_comands_second(){
new name_item[33]
new komenda[33]
new size=ArraySize(teamy_itemow)
for(new i=0;i<size;i++){
ArrayGetString(nazwy_itemow,i,name_item,32)
replace_all(name_item,32,"+","")
register_clcmd(name_item,"use_command_4_item")
format(komenda,33,"say %s",name_item)
register_clcmd(komenda,"use_command_4_item")
}
return PLUGIN_CONTINUE
}
public use_command_4_item(id){
new param[3][33],name_item[33]
new result,team
read_argv(0, param[0], 32)
read_argv(1, param[1], 32)
new size=ArraySize(teamy_itemow)
for(new i=0;i<size;i++){
ArrayGetString(nazwy_itemow,i,name_item,32)
replace_all(name_item,32,"+","")
team=ArrayGetCell(teamy_itemow,i)
if((equal(param[1],name_item)) || (equal(param[0],name_item))){
if(!team || team==get_user_team(id)){
ExecuteForward(kup_item, result, id, i);
if(result>=AP_HANDLED){
return PLUGIN_HANDLED
}
new koszt =ArrayGetCell(koszta_itemow,i)
kup(id,koszt)
}
}
}
return PLUGIN_CONTINUE
}
public client_connect(id){
get_user_name(id,nazwa_gracza[id],63)
if(get_pcvar_num(vault)==1)
wczytaj_dane(id)
}
public client_disconnect(id){
if(get_pcvar_num(vault)==1)
zapisz_dane(id)
Escape_Coins[id]=0
}
public DeathMsg()
{
new kid = read_data(1) //zabojca
new vid = read_data(2) // ofiara
Escape_Coins[kid]+=get_pcvar_num(pack_bonus)
if(task_exists(vid+241)) remove_task(vid+241)
}
public pokaz_packi(id){
}
public spwn(id){
if(task_exists(id+241)) remove_task(id+241)
set_task(0.6,"pokaz_packi",id+241,_,_,"b")
}
public dodaj_item(const nazwa[],koszt,team) //team 1 - TT 2 - CT
{
param_convert(1)
ArrayPushString(nazwy_itemow, nazwa);
ArrayPushCell(teamy_itemow, team);
ArrayPushCell(koszta_itemow,koszt);
liczba_itemow++
return liczba_itemow-1
}
public pokaz_menu(id)
{
if(!is_user_alive(id)){
client_print(id,print_chat,"You can't buy when you are Death")
return PLUGIN_HANDLED
}
mExtra_Items = menu_create("Buy Extra Items", "mh_Extra_Items")
mcbExtra_Items = menu_makecallback("mcb_Extra_Items")
new size=ArraySize(koszta_itemow)
for(new i=0;i<size;i++)
{
static text[128],nazwa[33],koszt,team,teams[16]
ArrayGetString(nazwy_itemow,i,nazwa,32)
koszt=ArrayGetCell(koszta_itemow,i)
team=ArrayGetCell(teamy_itemow,i)
switch(team){
case 0:
{
teams="All"
}
case 1:
{
teams="Zombie"
}
case 2:
{
teams="Human"
}
}
if(team!=get_user_team(id) && team>0)
format(text,127,"%s \y[%s]",nazwa,teams)
else format(text,127,"%s \y%d\w Coins",nazwa,koszt)
menu_additem(mExtra_Items, text,"ma_Kup_prezdmiot", ADMIN_ALL, mcbExtra_Items)
}
menu_display(id,mExtra_Items,0)
return PLUGIN_CONTINUE
}
public kup(id,koszt){
Escape_Coins[id]-=koszt
}
public mh_Extra_Items(id, menu, item) {
new result
if(item>-1){
ExecuteForward(kup_item, result, id, item);
if(result>=AP_HANDLED){
menu_destroy(menu)
return PLUGIN_HANDLED
}
new koszt =ArrayGetCell(koszta_itemow,item)
kup(id,koszt)
menu_destroy(menu)
}
return PLUGIN_CONTINUE
}
public ma_Kup_prezdmiot(id){}
public mcb_Extra_Items(id, menu, item)
{
new team=ArrayGetCell(teamy_itemow,item)
if(Escape_Coins[id]<ArrayGetCell(koszta_itemow,item)) return ITEM_DISABLED
if(get_user_team(id)!=team && team>0) return ITEM_DISABLED
return ITEM_ENABLED
}
public plugin_natives()
{
register_native("dodaj_extra_item", "dodaj_item", 1)
register_native("BB_get_user_ap", "get_ap",1)
register_native("BB_set_user_ap", "set_ap",1)
}
public get_ap(id)
{
return Escape_Coins[id]
}
public set_ap(id,ammount)
{
Escape_Coins[id]=ammount
}
public zapisz_dane(id){
new vaultkey[64],vaultdata[64]
format(vaultkey,63,"%s-bb",nazwa_gracza[id])
format(vaultdata,63,"%d",Escape_Coins[id])
nvault_set(g_vault,vaultkey,vaultdata)
return PLUGIN_CONTINUE
}
public wczytaj_dane(id){
new vaultkey[64],vaultdata[256]
format(vaultkey,63,"%s-bb",nazwa_gracza[id])
format(vaultdata,255,"%d",Escape_Coins[id])
nvault_get(g_vault,vaultkey,vaultdata,255) // pobieramy dane
Escape_Coins[id]=str_to_num(vaultdata)
return PLUGIN_CONTINUE
}
public cmd_daj_ap(id,level,cid)
{
if(is_user_connected(id))
{
new name[32], count[32]
read_argv(1, name, 31)
read_argv(2, count, 31)
new ilosc=str_to_num(count)
new player = cmd_target(id, name, CMDTARGET_ALLOW_SELF)
Escape_Coins[player]+=ilosc
}
return PLUGIN_HANDLED
}
Code: Select all
dodaj_extra_item("item_name",cost,teams = register_extra_item("item_name",cost,teams)
Code: Select all
ZE_TEAM_HUMAN or ZE_TEAM_ZOMBIE
Code: Select all
wybrano_item(id,item_id) = ze_select_item_pre(id,itemid)
Code: Select all
BB_get_user_ap = ze_get_user_escape_coins
Code: Select all
BB_set_user_ap = ze_set_user_escape_coins
and you search for this in my code :
__________________________________
Code: Select all
public mcb_Extra_Items(id, menu, item)
Code: Select all
if(get_user_team(id)!=team && team>0) return ITEM_DISABLED
[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Raheem
- Mod Developer
- Posts: 1972
- Joined: 2 Years Ago
- Location: Egypt
- Has thanked: 32 times
- Been thanked: 108 times
- Age: 22
- Contact:
Can you explain me why you are using old/outdated/not-supported versions? Let me know if there is something we forget in our versions it can be added in next version.
You don't know? Learn and you will know.
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
no no bro , because i added so much things to old version , but you can make a simple code and when i type
Code: Select all
return ITEM_DONT_SHOW
[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Raheem
- Mod Developer
- Posts: 1972
- Joined: 2 Years Ago
- Location: Egypt
- Has thanked: 32 times
- Been thanked: 108 times
- Age: 22
- Contact:
Actually I don't know what you did so i can help. And one more thing, this forum is made to support our Mod. Why we should support old/outdated Mod?At same time you if turned to the new version you will find all you like and much without any issues. Just take the decision and go forward.
You don't know? Learn and you will know.
- Muhammet20
- Veteran Member
- Posts: 408
- Joined: 1 Year Ago
- Location: Turkey
- Has thanked: 36 times
- Been thanked: 5 times
- Age: 15
- Contact:
how i can download it ?Raheem wrote: ↑10 Months AgoActually I don't know what you did so i can help. And one more thing, this forum is made to support our Mod. Why we should support old/outdated Mod?At same time you if turned to the new version you will find all you like and much without any issues. Just take the decision and go forward.
from where ?
but i dont want to change level system or other things
just i will put yoir version of ZE and Escape Coins System
i can do this or no ?
[ Post made via Android ]

[Learning HTML coding language]
[Learning Unreal Engine 4]
[Learning Adobe programs]
- Raheem
- Mod Developer
- Posts: 1972
- Joined: 2 Years Ago
- Location: Egypt
- Has thanked: 32 times
- Been thanked: 108 times
- Age: 22
- Contact:
You can download it and use it simply, and this website is made to help you in anything you can't do.
If you are using windows, just download this: viewtopic.php?f=6&t=59 (https://www.dropbox.com/s/173hh4wfhrd4o ... k.zip?dl=1)
If you are using linux, just download this: viewtopic.php?f=6&t=62 (https://www.dropbox.com/s/pyu4yo5jlopmj ... k.zip?dl=1)
Nothing more, just try and you will know it's better 100 times than old versions.
If you are using windows, just download this: viewtopic.php?f=6&t=59 (https://www.dropbox.com/s/173hh4wfhrd4o ... k.zip?dl=1)
If you are using linux, just download this: viewtopic.php?f=6&t=62 (https://www.dropbox.com/s/pyu4yo5jlopmj ... k.zip?dl=1)
Nothing more, just try and you will know it's better 100 times than old versions.
- These users thanked the author Raheem for the post:
- Muhammet20 (10 Months Ago)
You don't know? Learn and you will know.
Who is online
Users browsing this forum: No registered users and 0 guests