All pastes #266191 Raw Edit

Mine

public lua v1 · immutable
·published 2006-12-03 22:01 UTC
rendered paste body
function Item_OnPickUp(looter, loot, loot_type, amounttopickup)    if (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!")        		return false        elseif (looter:getVehicle():vehicletypeid() == 104) then            looter:message("Only the Sergeant may capture the Science objects!")    		return false                    elseif (looter:getVehicle():vehicletypeid() == 100) then            looter:message("Only the Sergeant may capture the Science objects!")           		return false        elseif (looter:getVehicle():vehicletypeid() == 102) then            looter:message("Only the Sergeant may capture the Science objects!")     		return false        elseif (looter:getVehicle():vehicletypeid() == 103) then            looter:message("Only the Sergeant may capture the Science objects!")   		return false	  end    end    return trueend