OciXCrom's Custom Shop + API
-
lamb
Извън линия - Потребител
- Мнения: 69
- Регистриран на: 28 Яну 2020, 00:16
- Местоположение: London
- Се отблагодари: 21 пъти
- Получена благодарност: 4 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
I'm sorry to bother you, but I need a custom plugin custom shop, could someone add to it when I buy so I can buy respawn for points and the team chang option or swap also for points ... I really need it, please help me if you can guys..
-
atmax
Извън линия - Потребител
- Мнения: 492
- Регистриран на: 22 Мар 2018, 15:06
- Се отблагодари: 37 пъти
- Получена благодарност: 43 пъти
OciXCrom's Custom Shop + API
Try these out:
If they dont work sorry I tryed my best
They will work when they are dead (ofc).. So set them up for dead players only
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <customshop>
#include <hamsandwich>
#define PLUGIN_VERSION "0.1a"
additem ITEM_RESPAWN
new bool:g_bRespawn[33]
public plugin_init()
{
register_plugin("CSHOP: Respawn", PLUGIN_VERSION, "aTmAx")
register_event("HLTV", "LogEvent_RoundStart", "a", "1=0", "2=0")
}
public plugin_precache()
ITEM_RESPAWN = cshop_register_item("respawn", "Respawn", 12000, 1)
public cshopItemBought(id, iItem)
{
if(iItem == ITEM_RESPAWN)
g_bRespawn[id] = true
if(!is_user_alive(id))
{
ExecuteHamB(Ham_CS_RoundRespawn, id)
}
}
public cshopItemRemoved(id, iItem)
{
if(iItem == ITEM_RESPAWN)
g_bRespawn[id] = false
}
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <customshop>
#include <cstrike>
#define PLUGIN_VERSION "0.1a"
additem ITEM_SWITCH
new bool:g_bSwitch[33]
public plugin_init()
{
register_plugin("CSHOP: SwitchTeams", PLUGIN_VERSION, "aTmAx")
register_logevent("LogeventEndRound", 2, "1=Round_End")
}
public plugin_precache()
ITEM_SWITCH = cshop_register_item("switch", "Switch Teams", 12000, 1)
public cshopItemBought(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = true
if(!is_user_alive(id))
{
switch (cs_get_user_team(id))
{
case CS_TEAM_T: cs_set_user_team(id, CS_TEAM_CT)
case CS_TEAM_CT: cs_set_user_team(id, CS_TEAM_T)
}
}
}
public cshopItemRemoved(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = false
}
They will work when they are dead (ofc).. So set them up for dead players only
Rest in peace my friend I always will remember you!
OciXCrom's Custom Shop + API
Thanks bro respawn working perfect, but team swap or change option doesnt work..
And when I’m alive and when I’m dead it doesnt work, can you try again to make it mate please?
And when I’m alive and when I’m dead it doesnt work, can you try again to make it mate please?
-
OciXCrom
Извън линия - Администратор
- Мнения: 7206
- Регистриран на: 06 Окт 2016, 19:20
- Местоположение: /resetscore
- Се отблагодари: 117 пъти
- Получена благодарност: 1295 пъти
- Обратна връзка:
OciXCrom's Custom Shop + API
How we change it to both? Alive and Death? or always dead can open shop?
-
atmax
Извън линия - Потребител
- Мнения: 492
- Регистриран на: 22 Мар 2018, 15:06
- Се отблагодари: 37 пъти
- Получена благодарност: 43 пъти
OciXCrom's Custom Shop + API
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <customshop>
#include <cstrike>
#define PLUGIN_VERSION "0.1a"
additem ITEM_SWITCH
new bool:g_bSwitch[33]
public plugin_init()
{
register_plugin("CSHOP: SwitchTeams", PLUGIN_VERSION, "aTmAx")
register_logevent("LogeventEndRound", 2, "1=Round_End")
}
public plugin_precache()
ITEM_SWITCH = cshop_register_item("switch", "Switch Teams", 12000, 1)
public cshopItemBought(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = true
switch (cs_get_user_team(id))
{
case CS_TEAM_T: cs_set_user_team(id, CS_TEAM_CT)
case CS_TEAM_CT: cs_set_user_team(id, CS_TEAM_T)
}
}
public cshopItemRemoved(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = false
}
For that option the ocixcrom's shop needs to be updated so..How we change it to both? Alive and Death? or always dead can open shop?
Rest in peace my friend I always will remember you!
OciXCrom's Custom Shop + API
I think work, but i need for death players.. And again thank you so much mate..
Can anyone help with that?
Can anyone help with that?
-
atmax
Извън линия - Потребител
- Мнения: 492
- Регистриран на: 22 Мар 2018, 15:06
- Се отблагодари: 37 пъти
- Получена благодарност: 43 пъти
OciXCrom's Custom Shop + API
Код за потвърждение: Избери целия код
#include <amxmodx>
#include <customshop>
#include <cstrike>
#define PLUGIN_VERSION "0.1a"
additem ITEM_SWITCH
new bool:g_bSwitch[33]
public plugin_init()
{
register_plugin("CSHOP: SwitchTeams", PLUGIN_VERSION, "aTmAx")
register_logevent("LogeventEndRound", 2, "1=Round_End")
}
public plugin_precache()
ITEM_SWITCH = cshop_register_item("switch", "Switch Teams", 12000, 1)
public cshopItemBought(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = true
if(!is_user_alive(id))
{
switch (cs_get_user_team(id))
{
case CS_TEAM_T: cs_set_user_team(id, CS_TEAM_CT)
case CS_TEAM_CT: cs_set_user_team(id, CS_TEAM_T)
}
}
else
{
client_print(id, print_chat, "This item is availible only for dead players!")
return PLUGIN_HANDLED
}
return PLUGIN_HANDLED
}
public cshopItemRemoved(id, iItem)
{
if(iItem == ITEM_SWITCH)
g_bSwitch[id] = false
}
Rest in peace my friend I always will remember you!
OciXCrom's Custom Shop + API
Nice and can you make respawn plugin to dead players?
Добавено преди 4 минути 34 секунди:
You did your best, now only if we could somehow change the custom shop so that live and dead players can use it would be great or OciXCrom if you can help for that please?
Добавено преди 4 минути 34 секунди:
You did your best, now only if we could somehow change the custom shop so that live and dead players can use it would be great or OciXCrom if you can help for that please?
-
- Подобни теми
- Отговори
- Преглеждания
- Последно мнение
-
- 1 Отговори
- 125 Преглеждания
-
Последно мнение от Hurricane
-
- 0 Отговори
- 1109 Преглеждания
-
Последно мнение от WWUghRght
-
- 1 Отговори
- 1781 Преглеждания
-
Последно мнение от mi0
-
- 0 Отговори
- 952 Преглеждания
-
Последно мнение от RedFoxxx
-
- 9 Отговори
- 719 Преглеждания
-
Последно мнение от HeatoN
-
- 1 Отговори
- 1527 Преглеждания
-
Последно мнение от iv69
-
- 8 Отговори
- 2899 Преглеждания
-
Последно мнение от Infamous2018
Кой е на линия
Потребители разглеждащи този форум: 0 регистрирани и 17 госта