Hello it is any possible to add one code witch player have steam to use /shop free or 50% discout (it is for admin)
Вложения
-
8,4 KB Просмотры: 5
-
565 байт Просмотры: 3
register_dictionary("deathmatchshop.txt")
stock bool:is_user_steam(id) {
static dp_pointer;
if(dp_pointer || (dp_pointer = get_cvar_pointer("dp_r_id_provider"))) {
server_cmd("dp_clientinfo %d", id);
server_exec();
return (get_pcvar_num(dp_pointer) == 2) ? true : false;
}
return false;
}
public ClCmd_Shop(id)
{
if(is_user_steam(id)) {
return ShowShopMenu(id)
}
if(get_pcvar_num(g_Cvar[0]) == 0)
{