Код за потвърждение: Избери целия код
#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)
}
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_RESPAWN)
g_bRespawn[id] = false
}
Only OcixCrom can do this but im not sure if he is going to do itYou 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?