Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Plain Text by ErkoN ( 12 years ago )
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <cstrike>
#include <fun>
#define ADMIN_VIP ADMIN_LEVEL_H
new g_iMenuId;
public plugin_init()
{
register_plugin("Vip menu", "1.0.0", "Drekes");
RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawnPost", 1);
g_iMenuId = menu_create("\rVIP menu -naplno.sk-", "HandleMenu");
menu_additem(g_iMenuId, "MP5 + Deagle + Granaty + Vesta", "1");
menu_additem(g_iMenuId, "M4a1 + Deagle + Granaty + Vesta", "2");
menu_additem(g_iMenuId, "Ak47 + Deagle + Granaty + Vesta", "3");
}
public FwdPlayerSpawnPost(id)
{
if(is_user_alive(id) && access(id, ADMIN_VIP) || access(id, ADMIN_MENU))
menu_display(id, g_iMenuId);
}
public HandleMenu(id, iMenuId, iItem)
{
if(iItem == MENU_EXIT || !is_user_alive(id))
return PLUGIN_HANDLED;
switch(iItem)
{
case 0:
{
give_item(id, "weapon_mp5navy");
cs_set_user_bpammo(id, CSW_MP5NAVY, 90);
}
case 1:
{
give_item(id, "weapon_m4a1");
cs_set_user_bpammo(id, CSW_M4A1, 90);
}
case 2:
{
give_item(id, "weapon_ak47");
cs_set_user_bpammo(id, CSW_AK47, 90);
}
}
give_item(id, "weapon_hegrenade");
give_item(id, "weapon_smokegrenade");
give_item(id, "weapon_flashbang");
give_item(id, "weapon_flashbang");
cs_set_user_armor(id, 130, CS_ARMOR_VESTHELM);
give_item( id, "weapon_deagle" )
cs_set_user_bpammo (id, CSW_DEAGLE, 35 );
give_item(id, "weapon_defuse");
return PLUGIN_HANDLED;
}
Revise this Paste
Children: 56866