- | Afiseaza codul
#include amxmisc #include cstrike #include fun #include hamsandwich #include ColorChat #pragma tabsize 0 public plugin_init() { RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1); } public PlayerPostSpawn(id) { if (!is_user_connected(id) || !is_user_steam(id)) return HAM_HANDLED; new MENU = menu_create ( "\ySTEAM BONUS \wMENU", "BONUS" ); menu_additem ( MENU, "ARME", "1", 0 ); menu_setprop ( MENU, MPROP_EXIT, MEXIT_ALL ); menu_display ( id, MENU, 0 ); return HAM_IGNORED; } public BONUS(id,MENU,item) { if (!is_user_alive(id) || !is_user_steam(id)) return PLUGIN_HANDLED; if (item == MENU_EXIT) return PLUGIN_HANDLED; new data [6], iName [64]; new access, callback; menu_item_getinfo ( MENU, item, access, data,5, iName, 63, callback); new key = str_to_num(data); switch(key) { case 1: { ARME(id); ColorChat (id, GREEN, "^1[^4Steam Bonus^1] Ai ales ^4ARME^1!"); } } menu_destroy ( MENU ); return PLUGIN_HANDLED; } public ARME(id) { new menu = menu_create ("\rMENIU ARME", "ALEGE"); menu_additem(menu, "\yM4A1", "1"); menu_additem(menu, "\yAK-47", "2"); menu_additem(menu, "\wAWP", "3"); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0 ); return 1; } public ALEGE(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu); return PLUGIN_HANDLED; } new data [6], szName [64]; new access, callback; menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback); new key = str_to_num (data); new name[32] get_user_name(id, name, 31); switch (key) { case 1: { if( is_user_alive( id ) ) { strip_user_weapons(id); give_item(id, "weapon_knife"); give_item(id, "weapon_deagle"); give_item(id, "weapon_m4a1"); cs_set_user_bpammo(id, CSW_M4A1, 90); cs_set_user_bpammo(id, CSW_DEAGLE, 70); ColorChat(id, GREEN, "^x03 Ai ales ^x04 M4A1 + DEAGLE") } } case 2: { if( is_user_alive( id ) ) { strip_user_weapons(id); give_item(id, "weapon_knife"); give_item(id, "weapon_deagle"); give_item(id, "weapon_ak47"); cs_set_user_bpammo(id, CSW_AK47, 90); cs_set_user_bpammo(id, CSW_DEAGLE, 70); ColorChat(id, GREEN, "^x03 Ai ales ^x04 AK47 + DEAGLE") } } case 3: { if( is_user_alive( id ) ) { strip_user_weapons(id); give_item(id, "weapon_knife"); give_item(id, "weapon_deagle"); give_item(id, "weapon_awp"); cs_set_user_bpammo(id, CSW_AWP, 90); cs_set_user_bpammo(id, CSW_DEAGLE, 70); ColorChat(id, GREEN, "^x03 Ai ales ^x04 AWP + DEAGLE") } } } menu_destroy(menu); return PLUGIN_HANDLED; } 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
Salut
Exista posibilitatea ca la pluginul asta sa fie in loc de AWP , FAMAS la CT si GALIL la T ?
Si in plus la fiecare selectie din cele 3 sa fie adaugat Armura , Grenade si Bani 5000 la fiecare inceput de runda