Jump to content

Our Partners
living the best life..

[Plugin] - Steam BONUS


Recommended Posts

  • - 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 by nee.

Detașamentul de Operațiuni Speciale „Azov

____.gif

Romanian Flag on GIFs - 22 Animated Images of Waving Flags

Link to comment
Share on other sites

  • hevvo locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...