kANORIbAbYjEWNTT Posted March 17, 2022 Share Posted March 17, 2022 (edited) - Nume plugin: steam bonus - Autor: Andy. - Engine : - Versiune: v2.0 - Informatii: Acest plugin ofera jucatorilor cu steam urmatoarele beneficii , - Armura - HE, x2FB - Deagle - Defuse Kit - Download: mai jos va fii postat sursa pluginului. - Instalare: 1. Compliati fisierul steambonus.sma 2. Fisierul steambonus.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: steambonus.amxx #include <amxmodx> #include <cstrike> #include <fun> #include <hamsandwich> #define PLUGIN "Beneficii Steam" #define VERSION "1.1" #define AUTHOR "Andy" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_Spawn, "player", "player_steam", 1); } public player_steam(id) { if(is_user_steam(id) && is_user_alive(id) && user_has_weapon(id, CSW_USP)) { strip_user_weapons (id) give_item(id,"weapon_deagle"); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id,"weapon_knife"); give_item(id,"weapon_hegrenade"); give_item(id,"weapon_flashbang"); give_item(id,"weapon_flashbang"); give_item(id,"item_assaultsuit"); give_item(id,"item_thighpack"); client_print(id, print_center, "Ai Primit Beneficiile.") } else if(is_user_steam(id) && is_user_alive(id) && user_has_weapon(id, CSW_GLOCK18)) { strip_user_weapons (id) give_item(id,"weapon_deagle"); cs_set_user_bpammo(id, CSW_DEAGLE, 35); give_item(id,"weapon_knife"); give_item(id,"weapon_hegrenade"); give_item(id,"weapon_flashbang"); give_item(id,"weapon_flashbang"); give_item(id,"item_assaultsuit"); give_item(id,"item_thighpack"); client_print(id, print_center, "Ai Primit Beneficiile.") } else { give_item(id,"weapon_knife"); give_item(id,"weapon_hegrenade"); give_item(id,"weapon_flashbang"); give_item(id,"weapon_flashbang"); give_item(id,"item_assaultsuit"); give_item(id,"item_thighpack"); client_print(id, print_center, "Ai Primit Beneficiile.") } return HAM_IGNORED; } 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 } Edited March 17, 2022 by nee. Detașamentul de Operațiuni Speciale „Azov” Link to comment Share on other sites More sharing options...
Recommended Posts