Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by ErkoN ( 14 years ago )
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, 120);
        }
        
        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 );

    return PLUGIN_HANDLED;
}

 

Revise this Paste

Your Name: Code Language: