All pastes #266182 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-03 21:55 UTC
rendered paste body
function Item_OnPickUp(looter, loot, loot_type, amounttopickup)

elseif (loot_type.m_name == "Science Object A") then
                -- Dont't let skrall or any other class besides sergeant pick it up
        if (looter:getVehicle():vehicletypeid() >= 200) then
            looter:message("You can't eat the science objects!")        
        if (looter:getVehicle():vehicletypeid() == 104) then
            looter:message("Only the Sergeant may capture the Science objects!")                
        if (looter:getVehicle():vehicletypeid() == 100) then
            looter:message("Only the Sergeant may capture the Science objects!")                
        if (looter:getVehicle():vehicletypeid() == 102) then
            looter:message("Only the Sergeant may capture the Science objects!")                
        if (looter:getVehicle():vehicletypeid() == 103) then
            looter:message("Only the Sergeant may capture the Science objects!")                
        return false
       end
end